You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-20 12:02:22 +03:00
Define upstream OAuth providers in the config
And adds CLI tool to sync them with the database (WIP)
This commit is contained in:
@@ -162,7 +162,7 @@ pub(crate) async fn post(
|
||||
) => {
|
||||
// Let's generate a random client secret
|
||||
let client_secret = Alphanumeric.sample_string(&mut rng, 20);
|
||||
let encrypted_client_secret = encrypter.encryt_to_string(client_secret.as_bytes())?;
|
||||
let encrypted_client_secret = encrypter.encrypt_to_string(client_secret.as_bytes())?;
|
||||
(Some(client_secret), Some(encrypted_client_secret))
|
||||
}
|
||||
_ => (None, None),
|
||||
|
||||
Reference in New Issue
Block a user