Repository navigation
Want to use OpenId Connect authentication in ASP .Net server using Keycloak #19474
Unanswered
Franco8888
asked this question in
Q&A
Replies: 1 comment
|
If I remember correctly, the resource owner password credentials grant (direct access grant) will simply send the ID tokens back to the application; the |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Using .Net 7
Server code in program.cs:
I get the the access token using:

I am using direct grant flow so the following settings of my Keycloak client are as follows:
When calling the endpoint on my server I get the following:
If Standard Flow is OFF:
I get this error: Client is not allowed to initiate browser login with given response_type. Standard flow is disabled for the client.
If Standard Flow is ON:
I get the Keycloak browser login which I do not want. I want to use the access_token as bearer token to authenticate.
What would I change to get the desired results?
All reactions