We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3093cc commit ab5602dCopy full SHA for ab5602d
2 files changed
app/Services/OAuth2/ResourceServerContext.php
@@ -40,6 +40,18 @@ public function getCurrentAccessToken()
40
}
41
42
43
+ /**
44
+ * @return string
45
+ */
46
+ public function getApplicationType()
47
+ {
48
+ return $this->getAuthContextVar('application_type');
49
+ }
50
+
51
+ private function getAuthContextVar(string $varName)
52
53
+ return isset($this->auth_context[$varName]) ? $this->auth_context[$varName] : null;
54
55
/**
56
* @return null|string
57
*/
app/libs/OAuth2/IResourceServerContext.php
@@ -41,4 +41,9 @@ public function getCurrentUserId();
* @return $this
public function setAuthorizationContext(array $auth_context);
+ public function getApplicationType();
0 commit comments