You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+66-47Lines changed: 66 additions & 47 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,10 @@
5
5
6
6
Customized from sample at [https://github.com/spring-projects/spring-authorization-server](https://github.com/spring-projects/spring-authorization-server).
7
7
8
+
## Requirements
9
+
10
+
To run this server you need at least a Java 17 runtime as this project uses spring boot 3.x.
11
+
8
12
## Usage
9
13
10
14
Start the server by running the class _com.example.spring.authorizationserver.SpringAuthorizationServerApplication_.
@@ -48,11 +52,11 @@ __Please note__: Instead of _localhost_ the local ip _127.0.0.1_ is configured a
48
52
This server already has preconfigured users.
49
53
Therefore, to login please use one of these predefined credentials:
@@ -64,68 +68,83 @@ The collections (for both JWT and Opaque tokens) can be found in the _postman_ f
64
68
The authorization server uses a persistent H2 (in-memory) storage for configuration and stored tokens.
65
69
66
70
You may have a look inside the data using the [H2 console](http://localhost:9000/h2-console).
67
-
Please use ```jdbc:h2:mem:authzserver``` as jdbc url and _sa_ as user name, leave password empty.
71
+
Please use ```jdbc:h2:mem:authzserver``` as jdbc url and _sa_ as username, leave password empty.
68
72
69
73
## Customizations
70
74
71
-
In the class _com.example.spring.authorizationserver.config.AuthorizationServerConfig_ you find some customizations.
72
-
As currently there is no documentation available for spring authorization server this may be helpful information.
75
+
This customized version contains an extended `user` object compared to the standard spring security `user` object.
76
+
The contents of id and access tokens and user info endpoint information is customized for extended user data as well.
77
+
78
+
Check the spring [authorization server reference docs](https://docs.spring.io/spring-authorization-server/docs/current/reference/html/guides/how-to-userinfo.html) for more information.
73
79
74
80
### Configure information returned to the userinfo endpoint
0 commit comments