Using the OAuth configuration in a Jigx solution
provider: DATA_PROVIDER_REST
method: GET
url: https://graph.microsoft.com/v1.0/me
parameters:
accessToken:
location: header
required: true
type: string
# Use manage.jigx.com to define credentials for your solution.
value: microsoft.OAuth title: User Profile
description: Displays a user's profile information from Microsoft Graph API
type: jig.default
header:
type: component.image
options:
source:
uri: https://builder.jigx.com/assets/images/header.jpg
onFocus:
type: action.sync-entities
options:
provider: DATA_PROVIDER_REST
entities:
- entity: userProfile
function: get-user-profile
functionParameters:
accessToken: microsoft.OAuth
datasources:
mydata:
type: datasource.sqlite
options:
provider: DATA_PROVIDER_LOCAL
entities:
- entity: userProfile
query: SELECT id, '$.displayName', '$.jobTitle', '$.userPrincipalName' FROM userProfile
isDocument: true
children:
- type: component.entity
options:
children:
- type: component.entity-field
options:
label: Display Name
value: [email protected]
- type: component.entity-field
options:
label: Job Title
value: [email protected]
- type: component.entity-field
options:
label: Principal Name
value: [email protected]
Last updated
Was this helpful?