Try "^https://localhost:8443/oauth_client" as your serviceId regex. You can even start with the default IMAPS/HTTPS service for testing.
On Tuesday, May 1, 2018 at 3:03:47 PM UTC-4, John D Giotta wrote: > > 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/5f364357-ef03-462a-8509-f2df9c12bd72%40apereo.org.