FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    OAuth with login form

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    2
    2
    376
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kayweng.foong
      last edited by

      How I can use OAuth authorize endpoint without fusionauth login UI ? I intend to allow user use own login UI to login, which use oauth authorize post method. The login is successful and redirect to my home page but unable to logout the sso session. I believe it is because missing fusionauth sso cookies at the fusionauth domain (since i direct call the post method without use the fusionauth login UI)

      Or what is better way to use OAuth with own login form ?

      danD 1 Reply Last reply Reply Quote 0
      • danD
        dan @kayweng.foong
        last edited by dan

        @kayweng-foong

        How I can use OAuth authorize endpoint without fusionauth login UI ?

        It depends on which grant you want to use. If you want to use the Authorization Code grant, which is what we typically recommend, then you are going to use the FusionAuth login UI (which can be customized via themes).

        If you want to use the password grant, you can build your own UI. There's more on that grant here: https://fusionauth.io/docs/v1/tech/oauth/

        If you don't care about using OAuth at all, but just want login functionality, you can use the Login API: https://fusionauth.io/docs/v1/tech/apis/login

        If you want SSO between different applications, however, you need to use the Authorization Code grant. You are right, there's other related functionality (cookies, etc) that is required for SSO that is managed by the FusionAuth UI (often called the "hosted login pages").

        There's an open issue: https://github.com/FusionAuth/fusionauth-issues/issues/1515 to allow for more management of the SSO session via API. Please feel free to upvote this issue and/or add your use case to the comments, as that helps us with our roadmap planning.

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        1 Reply Last reply Reply Quote 1
        • First post
          Last post