Skip to content

Azure AD Logon #413

Closed
Closed

Description

@itg-assistant

Sam Allen-Chaplin asked 2016-11-22 13:01:18 UTC

I was wondering if there were any recommendations to use Azure AD authentication with WiseJ, I have previously used ADAL for JavaScript to authenticate AngularJS applications, however I was wondering if anyone had been successful with WiseJ.

Thanks

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2016-11-22 15:34:52 UTC

    Wisej starts up as any html or aspx or cshtml page. Any authentication scheme that lets a user access a web page works unchanged. You can also authenticate entirely on the server side, which is a lot more secure, and show pages and windows that wouldn't be accessible to unauthenticated users.

    I haven't tried, but these samples seem to be a good start:

    https://docs.microsoft.com/en-us/azure/active-directory/active-directory-code-samples#single-page-application-spa

    Best,

    Luca

  2. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Sam Allen-Chaplin answered 2016-11-25 09:19:09 UTC

    Thanks Luca,

    I have tried a number of samples on the site and been able to get something to work, I did not have much luck with the OWIN or web application samples, however I did get a bit more luck with console based/native implementaions, I created a class and using a sign in button to call the relevant method I can sign in and then use a stored access token to call the Microsoft Graph API to get information back from Azure AD, I can check the user is still authenticated by checking the token cache in the Authenication Context is populated and clear this cache when I want the user to sign out.

    I have added the detail in a zip file on my question.

    Sam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions