oidc-angular | AngularJS Library for token based authentication | Authentication library

 by   michaelschnyder JavaScript Version: Current License: MIT

kandi X-RAY | oidc-angular Summary

kandi X-RAY | oidc-angular Summary

oidc-angular is a JavaScript library typically used in Security, Authentication, Angular applications. oidc-angular has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

AngularJS Library for token based authentication
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              oidc-angular has a low active ecosystem.
              It has 23 star(s) with 20 fork(s). There are 4 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 3 open issues and 3 have been closed. On average issues are closed in 0 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of oidc-angular is current.

            kandi-Quality Quality

              oidc-angular has 0 bugs and 0 code smells.

            kandi-Security Security

              oidc-angular has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              oidc-angular code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              oidc-angular is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              oidc-angular releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.
              It has 39 lines of code, 0 functions and 4 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed oidc-angular and discovered the below as its top functions. This is intended to give you an instant insight into oidc-angular implemented functionality, and help decide if they suit your requirements.
            • Decode a base - 64 string
            • Encode an array as a string
            • Parses a query string into an object
            • Get byte number from string
            • get byte number
            Get all kandi verified functions for this library.

            oidc-angular Key Features

            No Key Features are available at this moment for oidc-angular.

            oidc-angular Examples and Code Snippets

            No Code Snippets are available at this moment for oidc-angular.

            Community Discussions

            QUESTION

            Having issues with token refresh and logout functionality using the github repo for Angular and OneLogin OIDC
            Asked 2019-Sep-11 at 22:02

            I cloned the example repo at https://github.com/onelogin/onelogin-oidc-angular and changed the config details to point to my Onelogin instance. However, I am having a few issues getting the logout and automatic token renewal functionalities to work out of the box.

            For the logout functionality, I called the signoutRedirect function from the oidc-client.js library. I also made sure that the post logout redirect URI is set in the Auth service. post_logout_redirect_uri: 'http://localhost:4200/logout' However, when I trigger the logout functionality, i notice it does clear the session storage (where the tokens and other metadata are stored by default), but it also logs a console error message and does not redirect to the logout route as configured above.

            The error message is: Error: no end session endpoint. Please note that, the provided authority field value in the auth.service.ts file in the repo (https://openid-connect.onelogin-shadow01.com/oidc) did not work for us, so we switched it to: https://xxx.onelogin.com/oidc/.well-known/openid-configuration.

            As per the supporting blog provided for instructions on how to test the silent auto token renewal (https://www.scottbrady91.com/OpenID-Connect/Silent-Refresh-Refreshing-Access-Tokens-when-using-the-Implicit-Flow), I kept the network tab open to see if requests are automatically sent to renew the token. I did see the auth endpoint being called close to the token expiration (1 hr), however, the id tokens + metadata stored in the session storage by default does not get updated.

            Is there another step we are missing to manually adjust the token upon renewal?

            Thank you!

            ...

            ANSWER

            Answered 2019-Sep-11 at 22:02

            in oidc-client.js there is an event addUserLoaded, you have to listen to it na dthat will help you to load and update the new user with metadata

            Source https://stackoverflow.com/questions/57894632

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install oidc-angular

            To install oidc-angular use bower. Inject the $auth-provider to setup the library while configuring your angular-application.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/michaelschnyder/oidc-angular.git

          • CLI

            gh repo clone michaelschnyder/oidc-angular

          • sshUrl

            git@github.com:michaelschnyder/oidc-angular.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Authentication Libraries

            supabase

            by supabase

            iosched

            by google

            monica

            by monicahq

            authelia

            by authelia

            hydra

            by ory

            Try Top Libraries by michaelschnyder

            futronic-sdk-demo

            by michaelschnyderC#

            cleancode-smellyshapes-java

            by michaelschnyderJava

            SkypeClient

            by michaelschnyderC#

            PollingTcp

            by michaelschnyderC#

            SkypeNotifier

            by michaelschnyderC