pingidentity / angular-spa-sample Goto Github PK
View Code? Open in Web Editor NEWSample application using OAuth/OpenID Connect.
License: MIT License
Sample application using OAuth/OpenID Connect.
License: MIT License
Using Node version 8.11.3 on Linux and got the following error on npm install
:
$npm install 16.4s mer. 09 janv. 2019 16:28:15 CET
> [email protected] postinstall /media/data/workspaces/git/angular-spa-sample
> ng build --aot --prod
Date: 2019-01-09T15:28:37.211Z
Hash: a720188a510b4401014e
Time: 10312ms
chunk {0} runtime.ec2944dd8b20ec099bf3.js (runtime) 1.41 kB [entry] [rendered]
chunk {1} main.9868d9b237c3a48c54da.js (main) 128 bytes [initial] [rendered]
chunk {2} polyfills.85f47f0bf59079cbc23a.js (polyfills) 130 bytes [initial] [rendered]
chunk {3} styles.e5b8d1357cdaa3ffd936.css (styles) 61.8 kB [initial] [rendered]
ERROR in node_modules/@openid/appauth/built/xhr.d.ts(5,31): error TS2304: Cannot find name 'JQueryAjaxSettings'.
node_modules/@openid/appauth/built/xhr.d.ts(11,22): error TS2304: Cannot find name 'JQueryAjaxSettings'.
node_modules/@openid/appauth/built/xhr.d.ts(17,22): error TS2304: Cannot find name 'JQueryAjaxSettings'.
node_modules/@openid/appauth/built/xhr.d.ts(26,22): error TS2304: Cannot find name 'JQueryAjaxSettings'.
src/app/html5_requestor.ts(15,28): error TS2304: Cannot find name 'JQueryAjaxSettings'.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `ng build --aot --prod`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/[email protected]/.npm/_logs/2019-01-09T15_28_37_260Z-debug.log
Any idea on why it's not working?
The application ships with a local environment for Google. List steps to configure to talk to a PingFederate installation.
× Index html generation failed.
Inlining of fonts failed. An error has occurred while retrieving https://fonts.googleapis.com/icon?family=Material+Icons over the internet.
connect ETIMEDOUT 108.177.120.95:443
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: ng build --aot --prod
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\azl63tz\AppData\Roaming\npm-cache_logs\2021-05-20T11_31_07_093Z-debug.log
Hello,
When I run this sample, the this.authorizationService.completeAuthorizationRequest() is never called in the callback.component.ts because the following line
https://github.com/pingidentity/angular-spa-sample/blob/master/src/app/callback/callback.component.ts#L31 causes the next step of execution to go to https://github.com/pingidentity/angular-spa-sample/blob/master/src/app/callback/callback.component.ts#L38
Hi, Anyone able to help with this.
is it possible to change the scope from just openid to "openid+profile"
It looks like it's openid by default.
I used this solution and configured to work with our Idp or Secure token service(Ping Federate). codeflow-pkce worked as expected for SSO in locally but when hosted this application, it follows code flow without pkce.
When hosted into our website URL, flow not sending code_challenge and code_challenge_method parameters in the initial request such as follows but working fine in localhost.
https://sso.pingxxx.com/as/authorization.oauth2?redirect_uri=http%3A%2F%2Fl45367.ourdomain.com%3A3009%2Fcallback&client_id=ourapp&response_type=code&state=aANyA446UP&scope=openid&IdpApp=PingNoKerb&response_mode=fragment
Am trying to use this repository to connect with Ping One as Identity Provider.
I have done the following changes in environment.ts file,
export const environment: AuthorizationConfig & GeneralEnvironmentInfo = {
production: false,
issuer_uri: 'https://sso.connect.pingidentity.com',
client_id: '--------------------------',
client_secret: '----------------------',
//client_id: '465844544800-f1k5bhu8jibs9vc1ifh7nmhpmh7nqnod.apps.googleusercontent.com',
redirect_uri: 'https://localhost:4200/callback',
extras: {
'prompt': 'consent',
'access_type': 'offline'
}
};
and in Authentication_Service_configuration.ts of "node_modules@openid\appauth\built",
var WELL_KNOWN_PATH = 'sso/sp';
var OPENID_CONFIGURATION = 'initsso?saasid=XXXXXXXX-XXXX-XXXX-a90c-b803f008edc2&idpid=701c8fab-XXXX-4f6d-8115-XXXXX';
Am able to move the user to Ping One Sign In page, but getting the following error.
Kindly let me know what other change is needed in the implementation to complete.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.