Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

I want to use SimpleIdServer to manage identities and control the access by only using its APIs and building a custom UI. But the docs haven't explained how to use its APIs (no API references). I currently don't know what each API is for, and what is needed to call that API (such as scopes, permissions, etc.).

You must be logged in to vote

Replies: 3 comments · 7 replies

Comment options

See this it should help.

You must be logged in to vote
6 replies
@AkiraVoid
Comment options

I am also planning to make a JavaScript library to help people leverage SimpleIdServer more easily in their end products.

@Alik2015
Comment options

If you look at all the endpoints you can figure out how to create your own ui on top. We are also writing custom sigbin and register through our own app leveraging the server only for managing auth.

@simpleidserver
Comment options

Hello, first of all, thank you for your interest in SimpleIdServer :)
I would be very glad if you could participate in the development of a JavaScript library to help people develop their own UI client!

You can download the Postman project below; it contains the HTTP requests needed to execute the most important workflows, such as:

  • Registering one user and their credentials.
  • Registering one group.
  • Registering one client.
  • Assigning one client role to one group.
  • Assigning one group to a user.

I hope this project can be useful and give you a better understanding of the different APIs :)

SimpleIdServerManagement.postman_collection.json

@Alik2015
Comment options

In order for the above postman to work You will need to retrieve the token as a request and not via the Authorization tab in postman as this will not work. In the request you will need to send

image

@simpleidserver can you confirm this is the right way. As just clicking the Authorization tab in postman will not work.

Also what is the best way to manage this token when doing lots of registrations? Is it best to keep a cached version and check expiry or just get a new token every time you wish to perform an operation?

@simpleidserver
Comment options

Indeed, clicking on the Authorization tab is not enough; you must follow the actions below:

  • Select the first Get access token request.
  • Click on the Authorization tab and click on the Get new access token button.

image

  • Once the access token is received, select the request you are interested in executing, for example, Add one user.
  • Choose the Authorization tab and enter the new token

image

Postman retains the token in its cache, and an error message is displayed when the access token expires.

You can click on the Refresh link to renew the access token :).

Comment options

You must be logged in to vote
1 reply
@simpleidserver
Comment options

I have updated the Postman project and written the HTTP request clearly to obtain a valid access token, which will be utilized for interacting with different APIs :).
Additionally, the client_credentials grant_type has been enabled for the postman client.

SimpleIdServerManagement.postman_collection.json

Regarding the token, it is advisable to cache it and use the same until it expires.
You can find a code sample here:

private async Task<GetAccessTokenResult> GetAccessToken()

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.