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 prefixis "/". For example, when thePath prefixis empty, a default file path would be:https://cdn.sether.com/img/avatar.pngYou 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
- Login to the SetherAuth Console
- Click on the
Connectionsmenu item - Click on the
+button - Choose a connection from the list and click on the
Createlink - Fill in the necessary information and click
Save
Add the Connection to your Application
- Click on the
Applicationsmenu item - Click on your application
- Go to the
Connectionstab - Click
Addto add a new connection to the list - Select the newly created connection from the dropdown
- Modify the connection's rule, if applicable. See the Connection Properties section for more details.
- Click
Saveto save the changes