Skip to content

Best approach when all routes requires an authenticated user #45

Open
@larserikfinholt

Description

@larserikfinholt

Hi! First, thanks for this plugin, it works great!

In our new app we only allows authenticated users. That is, we dont need a login button. If the user is not logged in, the app should imediatly redirect to the STS (Identityserver).

What are the recommended way of doing this?

This is what we want to achive:

  • As fast/early as possible, check for a already logged in user (Any helper methods for this?)
  • If user is not logged in - redirect to STS
  • If user is logged in - continue booting the app

Are there any build in functionality in the plugin to help with this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions