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

    I want to create my own login form.

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    login forms customization
    1
    2
    2.1k
    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.
    • danD
      dan
      last edited by

      I want to create my own login form, how do I do so?

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

      1 Reply Last reply Reply Quote 1
      • danD
        dan
        last edited by

        If you have your own login form, you'll either be using the Login API or the OAuth Password grant. You will use one or the other, not both, each option will provide you roughly the same functionality. Totally up to you, the Login API is our own creation, the Password grant is defined by the OAuth RFC.

        High level:

        • Collect email and password
        • Call the Login API or the Token endpoint using the Password grant
        • Collect the JSON response which will contain an access token (JWT)

        Login API docs: https://fusionauth.io/docs/v1/tech/apis/login#authenticate-a-user

        Password Grant: https://fusionauth.io/docs/v1/tech/oauth/endpoints#resource-owner-password-credentials-grant-request
        https://fusionauth.io/docs/v1/tech/oauth/#example-resource-owner-password-credentials-grant

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

        1 Reply Last reply Reply Quote 1
        • T tiny.lamp6590 referenced this topic on
        • First post
          Last post