Skip to content

Feature request: return account from user authentication methods #246

Open
@chlowell

Description

@chlowell

I think user authentication would be more ergonomic if authentication methods returned the authenticated account.

For example, when I authenticate a user via acquire_token_by_authorization_code I get tokens and some response content from AAD but not the object I need to authenticate the same user via acquire_token_silent. For that I must call get_accounts and choose an account from the list it gives me. To be certain I'm choosing the right account I need its unique identifier. I can construct that from the response content acquire_token_by_authorization_code gave me, but only because I know the relevant implementation details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Commited

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions