-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
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
Form login authorize endpoint #67
Comments
yeah. It's totally not clear, how to do this. Anything new on the documentation? |
Hey! Are there any plans to add this to the documentation any time soon? I really like the simplicity of this lib but a form login is a must have in my usecase. |
Still have to put some effort into this. Configuration can be done something like: identityService = InMemoryIdentity()
.identity {
username = "foo"
password = "bar"
}
clientService = InMemoryClient()
.client {
clientId = "testapp"
clientSecret = "testpass"
scopes = setOf("trusted")
redirectUris = setOf("https://localhost:7000/callback")
authorizedGrantTypes = setOf(
AuthorizedGrantType.AUTHORIZATION_CODE,
AuthorizedGrantType.PASSWORD,
AuthorizedGrantType.IMPLICIT,
AuthorizedGrantType.REFRESH_TOKEN
)
}
tokenStore = InMemoryTokenStore()
authenticationCallback = { call, callRouter ->
if (authenticated) {
val context = KtorCallContext(call)
CallContextBasicAuthenticator.handleAuthentication(context, callRouter)
} else {
// render login page
}
}
|
Last changes allow to create form login on authorization endpoint.
It might be unclear how to do it. This could be added to documentation.
The text was updated successfully, but these errors were encountered: