- velruse.providers.mailru

The provider combines authentication with OAuth 2.0 authorization. It requires either a Site or a Application (the platform makes distinctions between Sites and Applications) to have been created to use. Links (Russian):


consumer_key Site/Application ID
consumer_secret Secret Key

POST Parameters

Complete Example:

<form action="/velruse/mailru/login" method="post">
    <input type="submit" value="Login with" />

Pyramid API Authentication Views

You may see developer docs on

class MailRuAuthenticationComplete(profile=None, credentials=None, provider_name=None, provider_type=None)[source]

Bases: velruse.AuthenticationComplete

MailRu auth complete

add_mailru_login(config, consumer_key, consumer_secret, scope=None, login_path='/login/mailru', callback_path='/login/mailru/callback', name='mailru')[source]

Add a MailRu login provider to the application.

add_mailru_login_from_settings(config, prefix='velruse.mailru.')[source]