Canvas Flashcards

1
Q

What is the default authentication method for Canvas?

A

Signed Request Authentication

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the 2 settings that control authentication for a Canvas app?

A
  1. Admin approved users are pre-authorized

2. All users may self authorize

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the signed request authentication based on?

A

OAuth

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the OAuth flows supported?

A

Web server

User Agent

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the flow when ‘Admin approved users are pre-authorized’ is selected?

A

SF performs a POST to canvas app with signed request + refresh token

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the flow when ‘All users may self authorize’ is selected?

A
  1. If user has previously approved the app and access hasn’t been revoked or expired, SF performs POST to canvas app with signed request
  2. If app not yet approved, SF performs GET to canvas app url.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the parameter that is sent in the GET call to the canvas app URL that indicates that an OAuth flow should be triggered?

A

_sfdc_canvas_authvalue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the signed request made up of?

A
  1. Canvas app consumer secret encrypted with SHA-256
  2. Period (“.”)
  3. Context and Authorization token encoded in Base64
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the functions that can be used to check the signed request?

A

VerifyAndDecode & VerifyAndDecodeAsJson

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What function do you use to request another signed request?

A

refreshSignedRequest

How well did you know this?
1
Not at all
2
3
4
5
Perfectly