We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using NewCustomServer how can use MapUserFn?
NewCustomServer
MapUserFn
auth/v2/provider/custom_server.go
Line 49 in 4e32f30
auth/v2/provider/providers.go
Line 33 in 78537e6
My problem using a customServer, i am blocked with an error provider is not allowed.
provider is not allowed
A custom provider with name provider doesn't create a user.id equal to provider_1234567890
provider
user.id
provider_1234567890
auth/middleware/auth.go
Line 159 in cea049c
func newOauth2Provider( goauth2 *goauth2.Server, oauth2Config *config.Oauth2, oauth2loginPageHandler http.HandlerFunc, oauth2Logger *OAuth2Logger, ) *provider.CustomServer { serverOption := provider.CustomServerOpt{ URL: oauth2Config.Server, L: oauth2Logger, LoginPageHandler: oauth2loginPageHandler, } prov := provider.NewCustomServer(goauth2, serverOption) return prov }
server.AddCustomProvider("provider", client, oauth2Provider.HandlerOpt)
Maybe i am doing something wrong, but i think is good idea to expose MapUserFn
Maybe related : umputun/remark42#1660 (comment)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Using
NewCustomServer
how can useMapUserFn
?auth/v2/provider/custom_server.go
Line 49 in 4e32f30
auth/v2/provider/providers.go
Line 33 in 78537e6
My problem using a customServer, i am blocked with an error
provider is not allowed
.A custom provider with name
provider
doesn't create auser.id
equal toprovider_1234567890
auth/middleware/auth.go
Line 159 in cea049c
server.AddCustomProvider("provider", client, oauth2Provider.HandlerOpt)
Maybe i am doing something wrong, but i think is good idea to expose
MapUserFn
Maybe related : umputun/remark42#1660 (comment)
The text was updated successfully, but these errors were encountered: