Skip to main content

Storage Connections

If you need to use file storage services, such as "avatar upload", you will need to set up a storage provider and apply it to your application in SetherAuth.

Item

  • Client ID: A unique identifier provided by the cloud storage provider.
  • Client secret: A secure value known only to SetherAuth and the cloud storage service.
  • Endpoint: The public URL or domain of the cloud storage service.
  • Endpoint (Intranet): The internal or private URL or domain of the cloud storage service.
  • Path prefix: Path prefix for the file location.
    info

    The default Path prefix is "/". For example, when the Path prefix is empty, a default file path would be:

    https://cdn.sether.com/img/avatar.png

    You can fill it with "abcd/xxxx", and then you can store your avatar in:

    https://cdn.sether.com/abcd/xxxx/img/avatar.png
  • Bucket: A container used for storing files and data.
  • Domain: The custom domain name of the CDN for your cloud storage.
  • Region ID: An identifier used to specify the data center region where the cloud storage service is located.

Create a Storage connection

  1. Login to the SetherAuth Console
  2. Click on the Connections menu item
  3. Click on the + button
  4. Choose a connection from the list and click on the Create link
  5. Fill in the necessary information and click Save

Add the Connection to your Application

  1. Click on the Applications menu item
  2. Click on your application
  3. Go to the Connections tab
  4. Click Add to add a new connection to the list
  5. Select the newly created connection from the dropdown
  6. Modify the connection's rule, if applicable. See the Connection Properties section for more details.
  7. Click Save to save the changes