AuthenticateSubscriber¶
Automatically log in a subscriber by appending a token provided by this API method call.
Request¶
GET https://api.uberflip.com/?Version=0.1&Method=AuthenticateSubscriber&APIKey=xxxxxxx&Signature=xxxxxx&TitleId=12345&SubscriberId=203&ResponseType=XML
URL Parameters | Description |
---|---|
Version | The version of the API to call (0.1 ). |
Method | The method being called (AuthenticateSubscriber ). |
APIKey | Your account’s API key. |
Signature | Your account’s API signature. |
UserId | (required for master/reseller accounts) The account identifier of the account to call the method on. |
TitleId | The identifier of the Title to log the subscriber into. |
SubscriberId | The identifier of the subscriber to log in. |
ResponseType | (optional) The response format (XML or JSON ). Defaults to JSON . |
Example Usage¶
Using the supplied token, you can bypass the login screen for your Subscription Module enabled Title and give valid subscribers instant access to your publication. Simply append ?token=Yjk5YmU4Nzc3OGM4ZDljZTIyN
to the end of either the Title or Issue link.
http://hub.publishingdomain.com/issue/12345?token=Yjk5YmU4Nzc3OGM4ZDljZTIyN
Once the token is accessed, it is removed and cannot be used again. This is to ensure that if the token-appended link is shared it cannot be abused.
This is most commonly used to avoid double log in whereby the subscriber has already been authenticated on your website by your own login system.