Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Global way to disable auth? #150

Open
surfjedi opened this issue Jun 7, 2016 · 1 comment
Open

Global way to disable auth? #150

surfjedi opened this issue Jun 7, 2016 · 1 comment

Comments

@surfjedi
Copy link

surfjedi commented Jun 7, 2016

Is there a way to globaly disable auth for example in dev mode or some thing?

I need to work on a stormpath angular app offline, and if all most of my pages and the inital page state are protected, is there a few lines of code to disable instead of changing permission in each state?

@robertjd
Copy link
Member

robertjd commented Jun 7, 2016

HI @surfjedi , I don't think we have a shim like this in the Angular SDK itself, but you could probably achieve this in your Express server. Take a look at the account response that is returned by the /me endpoint when you are logged in. You could temporarily configure your Express server with your own route handler for the /me route and have it return a mock account response.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants