Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Any ways to get authorization cookies without redirection to IS4 #3858

Closed
vlapenkov opened this issue Nov 26, 2019 · 2 comments
Closed

Any ways to get authorization cookies without redirection to IS4 #3858

vlapenkov opened this issue Nov 26, 2019 · 2 comments
Labels

Comments

@vlapenkov
Copy link

WHAT ALREADY DONE
I have one mvc app, one identity server and many webapis.
For internal users i used hybrid flow with response_type='code id_token'.

When mvc app sees [Authorize] attribute, it redirects the user to login form on identity server, then user post his credentials and cookies with id_token and access_token are sent to browser. It works good.

WHAT IS NEEDED
For external users network administrators disallow to redirect to the identity server as it is inside intranet.

I see how to bypass this problem through the following way:

  1. When mvc app sees [Authorize] attribute, it shows login form.
  2. When user post his credentials to this form, browser or MVC somehow passes it to IS4.
  3. IS4 authenticates user and returns all needed cookies with tokens to access mvc and web apis.

Please tell if this is possible , or there is workaround to archive this behavior.
Thank you in advance!

@leastprivilege
Copy link
Member

No this is not how it works.

You can achieve 2) via the passwort grant. But this will not give you SSO and is discouraged.

Long story short - IdentityServer should be accessible by all users that need to use it.

@lock
Copy link

lock bot commented Jan 10, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants