Giter Club home page Giter Club logo

Comments (6)

RichardKnop avatar RichardKnop commented on May 21, 2024

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.

eric-hon avatar eric-hon commented on May 21, 2024

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.

eric-hon avatar eric-hon commented on May 21, 2024

the secret of th client key how to generate ?

from go-oauth2-server.

RichardKnop avatar RichardKnop commented on May 21, 2024

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.

eric-hon avatar eric-hon commented on May 21, 2024

thanks!
and when running live, add the more client data is the same above? if not ,how to ?

from go-oauth2-server.

eric-hon avatar eric-hon commented on May 21, 2024

that's ok,thanks!

from go-oauth2-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.