Comments (6)
Do you mean in tests or when running live?
Right now there is only an option to connect to the database and run insert query.
In tests, you could add more test data to fixtures.
from go-oauth2-server.
thanks,in tests,the client secret how to generate ?
below client secret how how to generate ?
table: 'oauth_clients'
pk:
id: 1
fields:
key: 'test_client_1'
secret: '$2a$10$CUoGytf1pR7CC6Y043gt/.vFJUV4IRqvH5R6F0VfITP8s2TqrQ.4e'
redirect_uri: 'https://www.example.com'
created_at: 'ON_INSERT_NOW()'
updated_at: 'ON_UPDATE_NOW()'
from go-oauth2-server.
the secret of th client key how to generate ?
from go-oauth2-server.
Run from Postgres shell:
select crypt('new password', gen_salt('bf'));
You might need to enable pgcrypto
extension first if you haven't done it yet:
CREATE EXTENSION pgcrypto;
from go-oauth2-server.
thanks!
and when running live, add the more client data is the same above? if not ,how to ?
from go-oauth2-server.
that's ok,thanks!
from go-oauth2-server.
Related Issues (20)
- Docker container not starting HOT 2
- password grant type HOT 5
- build errror
- how to run this project
- Error from docker during build HOT 2
- i dont know how to use this project and what is where i must be start HOT 1
- Docker Compose up error HOT 2
- I don't see how roles are used HOT 1
- How to add the redis cache layer?
- docker compose up error HOT 2
- How to set token do not expire
- Docker compose: Database is uninitialized and superuser password is not specified. HOT 1
- database scope check fails
- is jwt ready now?
- how to generate client? HOT 1
- checksum mismatch while go install . HOT 4
- ambiguous import: consul
- Docker build failing with error "failed to build LLB" HOT 1
- how to run this project
- docker build -t go-oauth2-server:latest SECURITY ERROR HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-oauth2-server.