I have no time to write this, imagine by yourself.😄
- auth-server 7001
- gateway-server 7777 (unused)
- message-parent
- message-api
- message-resource 7002
- user-parent
- user-api
- user-resource 7003
Just run auth-server
, message-resource
, user-resource
.
docker run -d --name postgres -e POSTGRES_PASSWORD=dotdot -e PGDATA=/var/lib/postgresql/data/pgdata -v /docker/pgsql:/var/lib/postgresql/data -p 5432:5432 postgis/postgis
create database cloud-auth;
Table will be created by jpa update ddl.
import demo clients data ./docs/demo-clients.sql
docker run -d --privileged=true --name redis -p 6379:6379 redis
you know 127.0.0.1.
POST http://127.0.0.1:7001/loginByUsernamePassword?username=user&password=password
POST http://127.0.0.1:7001/loginByPhonePassword?phone=user&password=password
code_challenge
should be generated from http://127.0.0.1:7001/code/encode?code_verifier=ABCDEFG
code
was pkce code
GET http://127.0.0.1:7002/auth
with Bearer Token 👆
GET http://127.0.0.1:7003/user
with Bearer Token 👆