I am trying to get an Oauth token for grant type "authorization code". For getting the authorization code, i need to hit the authorization endpoint (http://localhost:9999/oauth/authorize?response_type=code&client_id=fooclient&scpe=read&redirect_uri=<>). And then login with user credentials and then approve, Is there a way i can auto approve, without having to login to authorization endpoint.
I changed my client setting with following values, but even then it's prompting for login screen.
.and()
.withClient("fooclient")
.secret("secret")
.autoApprove(true)
.autoApprove("read","foo","write")
//.authorities("ROLE_ADMIN")
.authorizedGrantTypes("password", "client_credentials","authorization_code", "refresh_token")
.scopes("foo", "read", "write")
.accessTokenValiditySeconds(3600)
I even tried .autoApprove("true") and .autoApprove("read") , but same result.
Aucun commentaire:
Enregistrer un commentaire