Claims in Obsidian Management API¶
Introduce¶
Obsidian uses Token-based Authentication and Claims-based Authorization.
If user wants to access a manament API action, a JsonWebToken must be added into the request.JsonWebToken generated by Obsidian OAuth Server contains claims that user owns. Some claims represent user’s personal information, others represent permissions which user is endowed with.
Strictly speaking, A claim can not represent what a user can/can not do. However, if we want a user to be able to edit something, we can give it a claim that tells other it is an editor instead of a claim that contains what resource it can operate
In this section, we mainly list all available claims that can be given to user.
For claims represented user’s personal information, see Claims in Obsidian OAuth Server