Coder Social home page Coder Social logo

fusionauth / fusionauth-angular-sdk Goto Github PK

View Code? Open in Web Editor NEW
0.0 8.0 2.0 436 KB

An SDK for using FusionAuth with Angular

Home Page: https://fusionauth.io/docs/quickstarts/#single-page-app

License: Other

JavaScript 9.43% HTML 1.61% SCSS 7.45% TypeScript 79.80% Shell 1.71%
angular authorization-code-grant fusionauth oauth2 oidc sdk

fusionauth-angular-sdk's People

Contributors

colinfrick avatar davidprae avatar dmackinn avatar lyleschemmerling avatar mooreds avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fusionauth-angular-sdk's Issues

Error handling for FusionAuthService

Error handling for FusionAuthService

Problem

The user will be loggedIn if the token expiration cookie is present, however, that doesn't consider a failed request to /me or the endpoint returning a non-user object (like an error). So how are we to handle this?

Solution

We should have a spec document for our webs SDKs (react, angular, vue) and implement a solution meeting those requirements.
cc: @david-chalk

It seems reasonable that a failure to the /me endpoint should make isLoggedIn() evaluate false and the app should be provided the error in some form or another.

Additional context

This same issue was present in the react SDK, and a solution was implemented. The Angular SDK doesn't currently have a concept of redirect success/failure.

Community guidelines

All issues filed in this repository must abide by the FusionAuth community guidelines.

How to vote

Please give us a thumbs up or thumbs down as a reaction to help us prioritize this feature. Feel free to comment if you have a particular need or comment on how this feature should work.

Add tests

Add tests

Description

The SDK has just boilerplate tests ("should create") at the moment. Let's add some ๐Ÿ‘

image

I recommend testing FusionAuthService first.

Community guidelines

All issues filed in this repository must abide by the FusionAuth community guidelines.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.