1 2 3 4 5 6 7 8 9 | docker run -d \ --name hydra-server \ -p 9000:4444 \ -e SYSTEM_SECRET=$SYSTEM_SECRET \ -e DATABASE_URL=$DATABASE_URL \ -e ISSUER=https://localhost:9000/ \ -e CONSENT_URL=http://localhost:3000/consent \ -e FORCE_ROOT_CLIENT_CREDENTIALS=admin:admin-password \ oryd/hydra:latest --dangerous-force-http --dangerous-auto-logon --disable-telemetry |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | hydra clients create --skip-tls-verify \ --id consent-app \ --secret consent-secret \ --name "Consent App Client" \ --grant-types client_credentials \ --response-types token \ --allowed-scopes hydra.consent hydra policies create --skip-tls-verify \ --actions get,accept,reject \ --description "Allow consent-app to manage OAuth2 consent requests."\ --allow \ --id consent-app-policy \ --resources "rn:hydraauth2:consent:requests:<.*>" \ --subjects consent-app |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |