langdev.thirdparty — Third-parties

LangDev provides a simple single sign-on API. It is available only for registered third-party applications.

class langdev.thirdparty.Application(**kwargs)

A third-party application object.

key

Unique primary key.

secret_key

Secret key for hmac().

static generate_key()

Generates a random key.

Returns:a random-generated 32 characters
Return type:str
static generate_secret_key()

Generates a random secret_key.

Returns:a random-generated 64 characters
Return type:str
owner_id

An id of owner.

owner

(User) An application owner.

title

An application title.

description

A long description of the application.

url

An application URL.

created_at

(datetime.datetime) Created time.

hmac(string)

Hashes a string using its secret_key.

Parameters:string – a string to hash
Returns:a hashed hexadecimal digest of string and secret_key
Return type:str

Project Versions

Previous topic

langdev.forum — LangDev forum

Next topic

langdev.objsimplify — Object simplifier for generic serialization

This Page