I think it's just the oauth-webflow
I have the following:
There was a fair amount of trial and error and it's in a 'it's working so
don't touch it state' so may not be completely optimal
import { AuthConfig } from 'angular-oauth2-oidc';
import { environment } from '../environments/environment';
export const casAuthConfig: AuthConfig = {
'clientId': environment.clientId,
'redirectUri': environment.redirectUri,
'postLogoutRedirectUri': environment.postLogoutRedirectUri,
'loginUrl': environment.loginUrl,
'scope': environment.scope,
'resource': '',
'rngUrl': '',
'oidc': false,
'requestAccessToken': true,
'options': null,
'clearHashAfterLogin': true,
'tokenEndpoint': environment.tokenEndpoint,
'responseType': 'code',
'showDebugInformation': environment.showDebugInformation,
'dummyClientSecret': environment.dummyClientSecret,
}
loginUrl: '.../oauth2.0/authorize',
tokenEndpoint: '.../oauth2.0/accessToken',
On Tuesday, 12 March 2019 14:11:19 UTC, maxwell_g wrote:
>
> Hi Ian,
>
>
>
> Thank you for the response.
>
>
>
> 1. Is adding “cas-server-support-oauth-webflow” the only change you
> made to the CAS build?
>
>
>
> 2. Are these the “angular-oauth2-oidc” properties you set?
>
>
>
> this.oauthService.redirectUri = window.location.origin;
>
> this.oauthService.clientId = [oauth client id from management services
> service definition];
>
> this.oauthService.scope = "profile email voucher";
>
> this.oauthService.issuer = "https://[cas server]/cas/oauth2.0/default";
>
> this.oauthService.oidc = false;
>
>
>
> -Gary
>
>
>
> *From:* [email protected] <javascript:> <[email protected] <javascript:>>
> *On Behalf Of *Ian Wright
> *Sent:* Tuesday, March 12, 2019 2:54 AM
> *To:* CAS Community <[email protected] <javascript:>>
> *Subject:* [cas-user] Re: interfacing CAS with angular 7 applications
>
>
>
> Short answer is yes.
>
>
>
> I'm currently using
>
> "angular-oauth2-oidc": "^4.0.3",
>
>
>
> with CAS 5.3.7
>
>
>
> I'm using oauth rather than oidc, mainly because I wanted to bypass the
> approval prompt which, at least when I tried it, could be configured for
> oauth but not oidc but IIRC oidc worked fine.
>
>
>
> On Monday, 11 March 2019 18:03:54 UTC, maxwell_g wrote:
>
> Has anyone been successful at setting up “angular-oauth2-oidc” library to
> interface with CAS? We are currently using version CAS 5.2.2 and would like
> to authenticate Angular 7 applications using Oauth and OpenId connect.
> Would the “angular-oauth2-oidc” component be compatible or is there
> alternative?
>
>
>
> Thanks Gary
>
> --
> - 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] <javascript:>.
> To view this discussion on the web visit
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/f38bc4f7-59e8-4441-acf5-af490c8adcfe%40apereo.org
>
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/f38bc4f7-59e8-4441-acf5-af490c8adcfe%40apereo.org?utm_medium=email&utm_source=footer>
> .
>
--
- 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/d56ddd43-92b7-4a4e-8756-5a26adfa2e1a%40apereo.org.