Unified Login

Use the wizard below to generate the code for your own unified login button.  Simply place the code where you want the button to appear, (e.g. on your login or registration page).

 

Customize

Scopes

You can define the scopes below. Scopes are used to ask the user to allow your application to access data on behalf of the user itself.

userid
account_communications
account_credits_history
account_escort_bookings
account_featuring
account_groups
account_information
account_phonechat_bookings
account_verification
account_webcam_bookings
age_verification_status
email
nickname
profile_about
profile_blacklist
profile_blogs
profile_details
profile_enjoys
profile_erotica
profile_gallery
profile_hotlist
profile_interview
profile_movies
profile_personal_info
profile_private_gallery
profile_rates
profile_sales
profile_services

 

If you would like to request additional scopes, drop us a line.

Settings

In addition to the settings above, you can also change the following:

HTML5 attributeTypeDescription
data-scopes string A comma seperated string of desired scopes that you ask permission for.
data-size string

A value that will indicate what size the button will be rendered. The following sizes are supported: small,medium,large,extralarge.

data-action string

The type of button rendered. Choose login if you only want the user to be able to login. Choose register if you want the user to be able to only register to AdultWork.com via your site. Choose connect to allow both options. Accepts: connect, login,register. Default is connect.

data-onlogin function A JavaScript function to trigger when the login process completed. The SDK will return the token object to this function.
data-culturelanguage string The language of the login window. Default is en-GB.

Example

The following example shows a login button and logs the response to the console.


<div class="aw-login-button" 
data-size="medium"
data-scopes="userid, email, nickname"
data-action="login"
data-onlogin="myFunction"
data-culturelanguage="en-GB">
</div>
<script type="text/javascript">
function myFunction(data) {
if (console){
console.log(data);
}
else { alert(data); }
}
</script>