Ah, ok. That worked.

I can now get a response with the login form. Thank you.

On Tuesday, May 1, 2018 at 4:08:07 PM UTC-4, Dan Roque wrote:
>
> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/2311fbc2-196b-4025-b603-515f799a03ce%40apereo.org.

Reply via email to