mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-11-04 08:05:42 +00:00 
			
		
		
		
	Compare commits
	
		
			3 Commits
		
	
	
		
			v3.3.0-alp
			...
			v3.3.0-alp
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					71b0c301f6 | ||
| 
						 | 
					1c738b718a | ||
| 
						 | 
					4dc6bc0c98 | 
@@ -189,7 +189,7 @@ func init() {
 | 
			
		||||
	rootCmd.Flags().String("generic-auth-url", "", "Generic OAuth auth URL.")
 | 
			
		||||
	rootCmd.Flags().String("generic-token-url", "", "Generic OAuth token URL.")
 | 
			
		||||
	rootCmd.Flags().String("generic-user-url", "", "Generic OAuth user info URL.")
 | 
			
		||||
	rootCmd.Flags().String("generic-name", "Generic", "Generic OAuth provider name.")
 | 
			
		||||
	rootCmd.Flags().String("generic-name", "Other", "Generic OAuth provider name.")
 | 
			
		||||
	rootCmd.Flags().Bool("disable-continue", false, "Disable continue screen and redirect to app directly.")
 | 
			
		||||
	rootCmd.Flags().String("oauth-whitelist", "", "Comma separated list of email addresses to whitelist when using OAuth.")
 | 
			
		||||
	rootCmd.Flags().Int("session-expiry", 86400, "Session (cookie) expiration time in seconds.")
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1679
									
								
								frontend/package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1679
									
								
								frontend/package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -25,7 +25,7 @@
 | 
			
		||||
    "react-dom": "^19.1.0",
 | 
			
		||||
    "react-i18next": "^15.4.1",
 | 
			
		||||
    "react-markdown": "^10.1.0",
 | 
			
		||||
    "react-router": "^7.1.3",
 | 
			
		||||
    "react-router": "^7.5.2",
 | 
			
		||||
    "zod": "^3.24.1"
 | 
			
		||||
  },
 | 
			
		||||
  "devDependencies": {
 | 
			
		||||
 
 | 
			
		||||
@@ -25,7 +25,7 @@ export const LoginForm = (props: LoginFormProps) => {
 | 
			
		||||
    <form onSubmit={form.onSubmit(onSubmit)}>
 | 
			
		||||
      <TextInput
 | 
			
		||||
        label={t("loginUsername")}
 | 
			
		||||
        placeholder="username"
 | 
			
		||||
        placeholder="Username"
 | 
			
		||||
        disabled={isPending}
 | 
			
		||||
        required
 | 
			
		||||
        withAsterisk={false}
 | 
			
		||||
@@ -43,7 +43,7 @@ export const LoginForm = (props: LoginFormProps) => {
 | 
			
		||||
      </Group>
 | 
			
		||||
      <PasswordInput
 | 
			
		||||
        className="password-input"
 | 
			
		||||
        placeholder="password"
 | 
			
		||||
        placeholder="Password"
 | 
			
		||||
        required
 | 
			
		||||
        disabled={isPending}
 | 
			
		||||
        key={form.key("password")}
 | 
			
		||||
 
 | 
			
		||||
@@ -608,7 +608,7 @@ func (h *Handlers) OauthCallbackHandler(c *gin.Context) {
 | 
			
		||||
 | 
			
		||||
	// Handle error
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		log.Error().Msg("Failed to exchange token")
 | 
			
		||||
		log.Error().Err(err).Msg("Failed to exchange token")
 | 
			
		||||
		c.Redirect(http.StatusPermanentRedirect, fmt.Sprintf("%s/error", h.Config.AppURL))
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
@@ -620,7 +620,7 @@ func (h *Handlers) OauthCallbackHandler(c *gin.Context) {
 | 
			
		||||
 | 
			
		||||
	// Handle error
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		log.Error().Msg("Failed to get email")
 | 
			
		||||
		log.Error().Err(err).Msg("Failed to get email")
 | 
			
		||||
		c.Redirect(http.StatusPermanentRedirect, fmt.Sprintf("%s/error", h.Config.AppURL))
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
@@ -636,7 +636,7 @@ func (h *Handlers) OauthCallbackHandler(c *gin.Context) {
 | 
			
		||||
 | 
			
		||||
		// Handle error
 | 
			
		||||
		if err != nil {
 | 
			
		||||
			log.Error().Msg("Failed to build queries")
 | 
			
		||||
			log.Error().Err(err).Msg("Failed to build queries")
 | 
			
		||||
			c.Redirect(http.StatusPermanentRedirect, fmt.Sprintf("%s/error", h.Config.AppURL))
 | 
			
		||||
			return
 | 
			
		||||
		}
 | 
			
		||||
@@ -673,7 +673,7 @@ func (h *Handlers) OauthCallbackHandler(c *gin.Context) {
 | 
			
		||||
 | 
			
		||||
	// Handle error
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		log.Error().Msg("Failed to build queries")
 | 
			
		||||
		log.Error().Err(err).Msg("Failed to build queries")
 | 
			
		||||
		c.Redirect(http.StatusPermanentRedirect, fmt.Sprintf("%s/error", h.Config.AppURL))
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user