{"id":18185266,"url":"https://github.com/baratharivazhagan/angular5-wso2-is-sso","last_synced_at":"2025-07-16T03:42:21.371Z","repository":{"id":121544063,"uuid":"125511423","full_name":"BarathArivazhagan/angular5-wso2-is-sso","owner":"BarathArivazhagan","description":"Angular web application integrated with angular-oauth2-oidc demonstrating SSO login using wso2 Identity server","archived":false,"fork":false,"pushed_at":"2018-12-22T13:01:07.000Z","size":354,"stargazers_count":5,"open_issues_count":1,"forks_count":7,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-01T21:03:15.492Z","etag":null,"topics":["angular","angular5","spring-boot","wso2-identity-server"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BarathArivazhagan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-16T12:08:57.000Z","updated_at":"2023-06-02T19:13:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"1839cab1-46e5-43c9-ab45-63b6579ee436","html_url":"https://github.com/BarathArivazhagan/angular5-wso2-is-sso","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/BarathArivazhagan/angular5-wso2-is-sso","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BarathArivazhagan%2Fangular5-wso2-is-sso","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BarathArivazhagan%2Fangular5-wso2-is-sso/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BarathArivazhagan%2Fangular5-wso2-is-sso/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BarathArivazhagan%2Fangular5-wso2-is-sso/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BarathArivazhagan","download_url":"https://codeload.github.com/BarathArivazhagan/angular5-wso2-is-sso/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BarathArivazhagan%2Fangular5-wso2-is-sso/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265479749,"owners_count":23773602,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","angular5","spring-boot","wso2-identity-server"],"created_at":"2024-11-02T22:42:18.126Z","updated_at":"2025-07-16T03:42:21.318Z","avatar_url":"https://github.com/BarathArivazhagan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSO OAuth2 login with WSO2 IS\n\n### Prerequisites\n\n##### Installation of JAVA\n\n```\n$ sudo yum install java-1.8.0-openjdk-devel\n```\n\n\n##### Installation of WSO2 IS with KM (key manager)\n\n```\n$ sudo su\n$ cd /opt\n$ wget http://product-dist.wso2.com/downloads/api-manager/2.1.0/identity-server/wso2is-km-5.3.0.zip\n$ unzip wso2is-km-5.3.0.zip\n```\n\n\n### Start identity server\n\n```\n$  /opt/wso2is-km-5.3.0/bin/wso2server.sh start\n```\n\n### Service provider configuration\n\n* Login into https://localhost:9443/carbon \n\n\u003e Note: wso2 default credentials admin/admin.\n\n* Click on add to create a new service provider and then click on register\n\n   https://localhost:9443/carbon/application/add-service-provider.jsp?region=region1\u0026item=add_service_providers_menu\n\n* Click on Inbound Authentication configuration and then configure OAuth/OpenID configuration\nto generate client credentials\n\n![add_new_sp](images/add_new_sp.png)\n\n* Configure callback uri as http://localhost:4200/callback and click on Add button\n\n![add_new_app](images/add_new_app.png)\n\n####  Start the angular app\n\n```\n$ cd angular2-oauth2-login\n$ npm install\n$ npm run start\n```\n\n### Using Docker\n\n WSO2 supports docker images \n\n * start identity server as docker container\n   \n   ```\n   $ docker run -d --name wso2-is -p 9443:9443 -t wso2/wso2is-km:5.6.0  \n   ```\n \n \n### Configuration Guide\n\n* OAuth2 endpoints are configured in environment.ts file.\nBelow endpoints can be modified as per the identity provider setup\n\n```\nexport const environment = {\n  production: false,\n  sso: {\n    clientId : '\u003c\u003cYOUR-CLIENT-ID\u003e\u003e',\n    serverUrl: 'https://localhost:9443',\n    issuer :  '/oauth2/token',\n    redirectUri : window.location.origin + '/callback',\n    scope: 'openid profile',\n    tokenEndpoint:  '/oauth2/token',\n    userinfoEndpoint:  '/oauth2/userinfo',\n    authorizationEndpoint:  '/oauth2/authorize',\n    jwksEndpoint: '/oauth2/jwks',\n    showDebugInformation: true,\n    requireHttps: false,\n    responseType: 'id_token token'   \n  }\n};\n\n```\n\n* Users can also provide well known configuration uri but note it is protected as per wso2. \nyou need to relax the rules to expose well known configuration uri.\n\n```\nthis.oauthService.loadDiscoveryDocumentAndTryLogin();\n```\n  [OpenID discovery](https://docs.wso2.com/display/IS530/OpenID+Connect+Discovery)\n\n* Same goes with JWKS uri, enable JwksValidationHandler if jwks object is set as part of oauthconfig\n\n```\nthis.oauthService.tokenValidationHandler = new JwksValidationHandler()\n```\n  [JWKS configuration](https://docs.wso2.com/display/IS541/JSON+Web+Key+Set+Endpoint) \u003cbr\u003e\n  [JWKS uri](https://localhost:9443/oauth2/jwks)\n\n* OAuth2 default endpoints can be viewed under resident section \n\n```\nIdentity Provider Entity Id:\thttps://localhost:9443/oauth2/token\nAuthorization Endpoint URL:\thttps://localhost:9443/oauth2/authorize\nToken Endpoint URL:\thttps://localhost:9443/oauth2/token\nToken Revocation Endpoint URL:\thttps://localhost:9443/oauth2/revoke\nToken Introspection Endpoint URL:\thttps://localhost:9443/oauth2/introspect\nUser Info Endpoint URL:\thttps://localhost:9443/oauth2/userinfo\nSession IFrame Endpoint URL:\thttps://localhost:9443/oidc/checksession\nLogout Endpoint URL:\thttps://localhost:9443/oidc/logout\n```\n\n###  Test SSO navigation\n\n1) Hit the browser http://localhost:4200\n\n2) User will get redirected to WSO2 IS login page\n\n3) Enter the credentials to login admin/admin.\n\n4) Once login is successful, home page is shown with some inventories","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaratharivazhagan%2Fangular5-wso2-is-sso","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaratharivazhagan%2Fangular5-wso2-is-sso","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaratharivazhagan%2Fangular5-wso2-is-sso/lists"}