mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-11-04 08:05:42 +00:00 
			
		
		
		
	Compare commits
	
		
			5 Commits
		
	
	
		
			v3.0.0-bet
			...
			v3.0.1-bet
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					7ee0b645e6 | ||
| 
						 | 
					5c34ab96a9 | ||
| 
						 | 
					cb6f93d879 | ||
| 
						 | 
					df0c356511 | ||
| 
						 | 
					d1c6ae1ba1 | 
@@ -46,5 +46,5 @@ Tinyauth is licensed under the GNU General Public License v3.0. TL;DR — You ma
 | 
			
		||||
 | 
			
		||||
Credits for the logo of this app go to:
 | 
			
		||||
 | 
			
		||||
- **Freepik** for providing the police hat and logo.
 | 
			
		||||
- **Freepik** for providing the police hat and badge.
 | 
			
		||||
- **Renee French** for the original gopher logo.
 | 
			
		||||
 
 | 
			
		||||
@@ -30,4 +30,4 @@ services:
 | 
			
		||||
      traefik.enable: true
 | 
			
		||||
      traefik.http.routers.tinyauth.rule: Host(`tinyauth.dev.local`)
 | 
			
		||||
      traefik.http.services.tinyauth.loadbalancer.server.port: 3000
 | 
			
		||||
      traefik.http.middlewares.tinyauth.forwardauth.address: http://tinyauth:3000/api/auth
 | 
			
		||||
      traefik.http.middlewares.tinyauth.forwardauth.address: http://tinyauth:3000/api/auth/traefik
 | 
			
		||||
 
 | 
			
		||||
@@ -28,4 +28,4 @@ services:
 | 
			
		||||
      traefik.enable: true
 | 
			
		||||
      traefik.http.routers.tinyauth.rule: Host(`tinyauth.example.com`)
 | 
			
		||||
      traefik.http.services.tinyauth.loadbalancer.server.port: 3000
 | 
			
		||||
      traefik.http.middlewares.tinyauth.forwardauth.address: http://tinyauth:3000/api/auth
 | 
			
		||||
      traefik.http.middlewares.tinyauth.forwardauth.address: http://tinyauth:3000/api/auth/traefik
 | 
			
		||||
 
 | 
			
		||||
@@ -533,10 +533,7 @@ func (api *API) SetupRoutes() {
 | 
			
		||||
 | 
			
		||||
		// If it is empty it means that no redirect_uri was provided to the login screen so we just log in
 | 
			
		||||
		if redirectURIErr != nil {
 | 
			
		||||
			c.JSON(200, gin.H{
 | 
			
		||||
				"status":  200,
 | 
			
		||||
				"message": "Logged in",
 | 
			
		||||
			})
 | 
			
		||||
			c.Redirect(http.StatusPermanentRedirect, api.Config.AppURL)
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		log.Debug().Str("redirectURI", redirectURI).Msg("Got redirect URI")
 | 
			
		||||
 
 | 
			
		||||
@@ -1 +1 @@
 | 
			
		||||
v3.0.0
 | 
			
		||||
v3.0.1
 | 
			
		||||
@@ -71,7 +71,7 @@ export const LoginPage = () => {
 | 
			
		||||
        color: "green",
 | 
			
		||||
      });
 | 
			
		||||
      setTimeout(() => {
 | 
			
		||||
        if (isQueryValid(redirectUri)) {
 | 
			
		||||
        if (!isQueryValid(redirectUri)) {
 | 
			
		||||
          window.location.replace("/");
 | 
			
		||||
        } else {
 | 
			
		||||
          window.location.replace(`/continue?redirect_uri=${redirectUri}`);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user