forked from Github-Mirrors/canaille
7 lines
179 B
Python
7 lines
179 B
Python
import base64
|
|
|
|
|
|
def client_credentials(client):
|
|
return base64.b64encode(
|
|
client.client_id.encode("utf-8") + b":" + client.secret.encode("utf-8")
|
|
).decode("utf-8")
|