Skip to main content

Authentication API

A token is a piece of data that has no meaning or use on its own, but combined with the correct tokenization system, becomes a vital player in securing your application. Token based authentication works by ensuring that each request to a server is accompanied by a signed token which the server verifies for authenticity and only then responds to the request.

JSON Web Token (JWT) is an open standard (RFC 7519) that defines a compact and self-contained method for securely transmitting information between parties encoded as a JSON object.

The Authentication API enables you to manage all aspects of user identity when you use Auth0. It offers endpoints so your users can log in, sign up, log out, access APIs, and more.

note

Your access-token contains many privileges, keep it secure!

Web Signin API to authenticate with username and password

More about Authentication API documentation

API


Login

Login to receive token with username and password.

Parameters

POST

/v1/iam/auth/sign-in/web/sign-in

Request URL

Authentication API documentation

Models


WebSignInRequest Object

AttributeTypeDescription
passwordstringUser password
userNamestringUsername

AuthenticationResultType

AttributeTypeDescription
accessTokenstring
expiresIninteger
idTokenstring
newDeviceMetadataNewDeviceMetadataType
refreshTokenstring
tokenTypestring

NewDeviceMetadataType

AttributeTypeDescription
deviceGroupKeystring
deviceKeystring