<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">
<content type="application/xml">
<m:properties>
<d:DeviceType>iPhone</d:DeviceType>
<d:DeviceModel>Apple</d:DeviceModel>
<d:DeviceSubType>iPhone 7</d:DeviceSubType>
<d:DevicePhoneNumber>+1/23456789</d:DevicePhoneNumber>
<d:DeviceIMSI>test1234</d:DeviceIMSI>
<d:UserLocale>hu</d:UserLocale>
<d:TimeZone>CET</d:TimeZone>
<d:LastKnownLocation>Budapest</d:LastKnownLocation>
<d:Email>example@example.com</d:Email>
</m:properties>
</content>
</entry>
1. Go back to the Authorization tab and click on Get New Access Token
2. Copy the Callback URL.
3. Go to SCP.
4. Choose Security and OAuth.
5. Go to the Clients tab.
6. Choose your OAuth client and Edit it.
7. Insert the copied Callback URL (7th point) to the Redirect URI and click Save.
8. Go back to SCPms > our app > Security feature and click on the OAuth Client that we created
9. Copy the Authorization Endpoint (use the shortcut).
10. Open Postman and add it as Auth URL.
11. In SCPms now copy the Token Endpoint.
12. In Postman add it into the Access Token URL field.
13. In SCPms copy the Client ID.
14. In Postman add it into the Client ID field.
15. Set the Grant Type to Authorization Code and click Request Token.
16. A pop up window will appear and disappear as you're authenticated.
17. Now click on your token and choose Header from the "Add token to" dropdown list.
18. If you click to the Headers tab (the upper one) then you'll see that your Authorization header is set to Bearer <encodedTokenValue>
19. Now you can go back and Send our request.
20. You received your 201 Created Response and now in SCPms under User Registrations you can see that you successfully registered your client with OAuth.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
25 | |
17 | |
15 | |
12 | |
9 | |
9 | |
8 | |
8 | |
8 | |
7 |