-
Notifications
You must be signed in to change notification settings - Fork 23
Application showing error after SignOn #17
Description
I tried implementing the code but its not working for me. After clicking on signon, it shows an error that "The request could not be completed. The requested resource was not found." After clicking on details, it shows the following 3 details:
- id: e99666da-b2d4-476a-8a1e-8ec5c7bdb6dc
- code: NOT_FOUND
- details: The request could not be completed. The requested resource was not found.
My configuration for the connection are:
var authClient = new PingOneAuthClient({
environmentId: "0ab96911-1e59-4e94-b12b-5473b81e41d1",
clientId: "e0889f8a-82cd-4c7d-a781-f16cf73acdeb",
redirectUri: 'http://localhost:8080',
postLogoutRedirectUri: 'http://localhost:8080',
scopes: ['openid','email'],
responseType: ['token', 'id_token'],
pkce: false
});
Can you please help me resolve the error?
I then added one more parameter to the AuthClient. "AUTH_URI: 'https://auth.pingone.asia" But the problem still persists. In my console it shows error of "p14c-js-sdk-auth.js:1 Refused to connect to 'https://auth.pingone.asia/0ab96911-1e59-4e94-b12b-5473b81e41d1/as/.well-known/openid-configuration' because it violates the following Content Security Policy directive: "default-src https://auth.pingone.com https://auth-staging.pingone.com https://api.pingone.com https://api-staging.pingone.com https://apps.pingone.com https://apps-staging.pingone.com https://cdn.polyfill.io https://cdn.shoelace.style 'unsafe-inline'". Note that 'connect-src' was not explicitly set, so 'default-src' is used as a fallback."