@@ -21,20 +21,20 @@ var oauth2_err error
2121
2222func AppendOAuth2Flags (fs * flag.FlagSet ) error {
2323
24- fs .Bool ("enable-oauth2" , false , ".. ." )
24+ fs .Bool ("enable-oauth2-login " , false , "Enable support for logging in through an OAuth2 provider ." )
2525
26- fs .String ("oauth2-client-id" , "" , ".. ." )
27- fs .String ("oauth2-client-secret" , "" , ".. ." )
26+ fs .String ("oauth2-client-id" , "" , "The OAuth2 application client ID used for validating users ." )
27+ fs .String ("oauth2-client-secret" , "" , "The OAuth2 application secret used for validating users ." )
2828
29- fs .String ("oauth2-scopes" , "" , ".. ." )
29+ fs .String ("oauth2-scopes" , "" , "A comma-separated list of OAuth2 scopes to request when validating users ." )
3030
31- fs .String ("path-oauth2-auth" , "/signin/" , ".. ." )
32- fs .String ("path-oauth2-token" , "/auth/" , ".. ." )
31+ fs .String ("path-oauth2-auth" , "/signin/" , "The relative path where users log in to this application ." )
32+ fs .String ("path-oauth2-token" , "/auth/" , "The relative path users are redirected after being validated by an OAuth2 provider ." )
3333
34- fs .String ("oauth2-auth-url" , "" , ".. ." )
35- fs .String ("oauth2-token-url" , "" , ".. ." )
34+ fs .String ("oauth2-auth-url" , "" , "The URL of the OAuth2 provider's authorization endpoint ." )
35+ fs .String ("oauth2-token-url" , "" , "The URL of the OAuth2 provider's token retrieval endpoint ." )
3636
37- fs .String ("oauth2-cookie-dsn " , "" , ".. ." )
37+ fs .String ("oauth2-cookie-uri " , "" , "A valid aaronland/go-http-cookie.Cookie URI string ." )
3838
3939 return nil
4040}
0 commit comments