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