Greetings,
I'm attempting to use CAS as an OAuth2.0 server. I've read the 
documentation 
here: 
https://apereo.github.io/cas/5.2.x/installation/OAuth-OpenId-Authentication.html
 
but I just can't seem to get it work

My oauth-1001.json in /etc/cas/service 

{
  "@class" : "org.apereo.cas.support.oauth.services.OAuthRegisteredService",
  "clientId": "oauth_client",
  "clientSecret": "secret",
  "bypassApprovalPrompt": false,
  "serviceId" : "^https:\\/\\/localhost:8443\\/oauth_client",
  "name" : "OAuthTest",
  "id" : 1001,
  "evaluationOrder" : 1,
}


And I added the following dependencies to the pom.xml

<dependencies>
    <dependency>
        <groupId>org.apereo.cas</groupId>
        <artifactId>cas-server-support-oauth-webflow</artifactId>
        <version>${cas.version}</version>
    </dependency>
    <dependency>
        <groupId>org.apereo.cas</groupId>
        <artifactId>cas-server-support-rest-authentication</artifactId>
        <version>${cas.version}</version>
    </dependency>
</dependencies>



The problem is that if I attempt to curl the authorize endpoint I get a 
error "Application Not Authorized to Use CAS" HTML page as response. Am I 
missing something? Does an example exist?

I want to use CAS for web logins and rest Oauth requests.

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/ff879bc5-283f-48cd-8285-0d9275d466d4%40apereo.org.

Reply via email to