Initial commit

This commit is contained in:
mschuepbach
2024-03-24 18:17:49 +01:00
commit fe4a7dc49e
16 changed files with 1784 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
package AuthType;
use constant {
UNAUTHORIZED => 1,
BROWSER => 2,
OAUTH_DEFAULT => 3, # client auth via OAuth token refreshing
OAUTH_CUSTOM_CLIENT =>
4, # YTM instance is using a non-default OAuth client (id & secret)
OAUTH_CUSTOM_FULL =>
5, # allows fully formed OAuth headers to ignore browser auth refresh flow
};
sub oauth_types {
return ( OAUTH_DEFAULT, OAUTH_CUSTOM_CLIENT, OAUTH_CUSTOM_FULL );
}
1;