Skip to content

Authentication Loop in IFrame  #11

@wlumetsberger

Description

@wlumetsberger

If the Balzor-Seite is embedded in an IFrame (Microsoft Teams WebsiteTab) the Authentication ends up in a Loop.
Teams uses also Federated Authentication with Okta.
Using the Site Standalone the Authentication Works as aspect.
AccountController is called -> Challange is Called -> Okta Login does appear
OnTokenValidateEvent gets fired containing the authenticated Userprincipal in args.Identity
image
AccountController is called -> HttpContext.User is authenticated
image

Using the same Site in a Team Websitetab the steps are the following:
AccountController is called -> Challenge is Called -> no Okta Login appears (Token is already here)
image
OnTokenValidateEvent gets fired containing the authenticated Userprincipal
image
AccountController is called -> but now User is not authenticated! --> Loop
image

This is the Configuration used:
image

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