Skip to content

bhukailas/spring-oauth2-resource-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What to configure?

Configure jwt issuer-uri of authorization server in application.yml

a) Request to resource server with Authorization header

curl --location 'http://localhost:8081/users'
--header 'Authorization: Bearer '
--header 'Cookie: JSESSIONID=3EABD073A4738AF67081BF7C7AACCA82'

How should i get a value for Authorization header??

You can get it by invoking following api

curl --location 'http://localhost:8080/realms/appsdeveloperblog/protocol/openid-connect/token'
--header 'grant_type: authorization_code'
--header 'client_id: '
--header 'client_secret: '
--header 'code: '
--header 'redirect_uri: http://localhost:8083/callback'
--header 'scope: read_custom_scope'
--header 'Content-Type: application/x-www-form-urlencoded'

To which url we need to redirect in order to get a code in browser

http://localhost:8080/realms/realm-name/protocol/openid-connect/auth?client_id=client-name&response_type=code&scope=openid profile&redirect_uri=http://localhost:8083/callback&state=hsjkfhsahf

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages