Mobile Bearer Token - CodeB Identity Solutions Mobile Bearer Token - CodeB Identity Solutions

View Categories

Mobile Bearer Token

2 min read

View Docs

CodeB enables the mobile device, with installed CodeB Apps, to function as the Identity Provider (IdP). To procure a Bearer Token directly from the mobile device using the OTT mechanism, the “MobileToken” Web Services API is essential.

API Endpoint:
<BaseURL>/ws/mobile.asmx?op=MobileToken

Demo Server Example:
https://auth.codeb.io/ws/mobile.asmx?op=MobileToken

Required Parameters:

  1. phoneNumber: Specifies the international phone number of the device equipped with the CodeB App.
  2. BindingPIN: Implemented by CodeB for spam protection, it prevents unauthorized parties from sending pop-up messages to mobile devices. It must be configured in the CodeB App’s OIDC Settings and adds an extra encryption layer to the OTT Message. The message is delivered only if the BindingPIN matches the one in the CodeB App.

Result:
The API returns an encoded JSON Web Token, ensuring secure and precise token acquisition directly from the mobile device.

Sample encoded JSON Web Token:

eyJrdHkiOiJSU0EiLCJlIjoiQVFBQiIsInR5cCI6IkpXVCIsImFsZyI6IlJTMjU2IiwibiI6InNHVkJrcDJhdFJVYjZyZ25Ic3RYR3ZUYVNVSF9UcHZhTkgwRzM4aWdxWWpHdTk1NzRHQXNlREZ4NUVuX0xWN3d3Yklua00xRXVjS2p5ZHl2cER4c1FZM2I3UXVKd05zclk2LUdmVno5OFhtMmo4eldRZjQ0SldKRnFYV1M2amtkRjhOeEQ0YkpNU2JmbnhORExKUzFwRXIxZzh5N1duRnNpNURsMHhsYUdxMHlNU0tmX2U1aE5WTmk5MGFGYWFuNFRxR2hWNTcwZm10Wnp6MHZJSTQ4V0RqOExoM3ppMDU1UW0wODFfaE1CT0tDTDVpYUJrZzlwb3RXd19DZ0N2OHRlZWJJMVd4VzN4NGgzZVROaGktWUFmNVdOaXF0bGwxWllHeXlNY2VTQ01tRFNIWG51bXRIdVhRaWFYQS16ZzA2WkVYNjI3Z2p5UjUtdFp2MjBsMEdDdyJ9.eyJhcHAiOiJzbXMiLCJhdF9oYXNoIjoiTlBzY2NyeVhhVGZRcFpoSkZn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