Skip to content

Commit

Permalink
Adding new constant class for various OAuth 2 constant terms
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesbihis committed Jan 24, 2013
1 parent 8c7423b commit 0988ebf
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 40 deletions.
50 changes: 25 additions & 25 deletions .actionScriptProperties
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<actionScriptProperties analytics="false" mainApplicationPath="actionscript-oauth2.as" projectUUID="039ca7db-4d44-4e15-a6de-e370f33e189c" version="10">
<compiler additionalCompilerArguments="-locale en_US" autoRSLOrdering="true" copyDependentFiles="false" fteInMXComponents="false" generateAccessible="false" htmlExpressInstall="true" htmlGenerate="false" htmlHistoryManagement="false" htmlPlayerVersionCheck="true" includeNetmonSwc="false" outputFolderPath="bin" removeUnusedRSL="true" sourceFolderPath="src/main/actionscript" strict="true" targetPlayerVersion="0.0.0" useApolloConfig="true" useDebugRSLSwfs="true" verifyDigests="true" warn="true">
<compilerSourcePath>
<compilerSourcePathEntry kind="1" linkType="1" path="src/main/actionscript"/>
<compilerSourcePathEntry kind="1" linkType="1" path="src/test/actionscript"/>
</compilerSourcePath>
<libraryPath defaultLinkType="0">
<libraryPathEntry kind="4" path="">
<excludedEntries>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/flex.swc" useDefaultLinkType="false"/>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/core.swc" useDefaultLinkType="false"/>
</excludedEntries>
</libraryPathEntry>
<libraryPathEntry kind="1" linkType="1" path="libs"/>
</libraryPath>
<sourceAttachmentPath/>
</compiler>
<applications>
<application path="actionscript-oauth2.as"/>
</applications>
<modules/>
<buildCSSFiles/>
<flashCatalyst validateFlashCatalystCompatibility="false"/>
</actionScriptProperties>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<actionScriptProperties analytics="false" mainApplicationPath="actionscript-oauth2.as" projectUUID="039ca7db-4d44-4e15-a6de-e370f33e189c" version="10">
<compiler additionalCompilerArguments="-locale en_US" autoRSLOrdering="true" copyDependentFiles="false" fteInMXComponents="false" generateAccessible="false" htmlExpressInstall="true" htmlGenerate="false" htmlHistoryManagement="false" htmlPlayerVersionCheck="true" includeNetmonSwc="false" outputFolderPath="bin" removeUnusedRSL="true" sourceFolderPath="src/main/actionscript" strict="true" targetPlayerVersion="0.0.0" useApolloConfig="true" useDebugRSLSwfs="true" verifyDigests="true" warn="true">
<compilerSourcePath>
<compilerSourcePathEntry kind="1" linkType="1" path="src/main/actionscript"/>
<compilerSourcePathEntry kind="1" linkType="1" path="src/test/actionscript"/>
</compilerSourcePath>
<libraryPath defaultLinkType="0">
<libraryPathEntry kind="4" path="">
<excludedEntries>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/flex.swc" useDefaultLinkType="false"/>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/core.swc" useDefaultLinkType="false"/>
</excludedEntries>
</libraryPathEntry>
<libraryPathEntry kind="1" linkType="1" path="libs"/>
</libraryPath>
<sourceAttachmentPath/>
</compiler>
<applications>
<application path="actionscript-oauth2.as"/>
</applications>
<modules/>
<buildCSSFiles/>
<flashCatalyst validateFlashCatalystCompatibility="false"/>
</actionScriptProperties>
31 changes: 16 additions & 15 deletions .flexLibProperties
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<flexLibProperties includeAllClasses="true" useMultiPlatformConfig="false" version="3">
<includeClasses>
<classEntry path="com.adobe.protocols.oauth2.OAuth2"/>
<classEntry path="com.adobe.protocols.oauth2.grant.IGrantType"/>
<classEntry path="com.adobe.protocols.oauth2.grant.AuthorizationCodeGrant"/>
<classEntry path="com.adobe.protocols.oauth2.event.IOAuth2Event"/>
<classEntry path="com.adobe.protocols.oauth2.event.GetAccessTokenEvent"/>
<classEntry path="com.adobe.protocols.oauth2.grant.ImplicitGrant"/>
<classEntry path="com.adobe.protocols.oauth2.grant.ResourceOwnerCredentialsGrant"/>
<classEntry path="com.adobe.protocols.oauth2.event.RefreshAccessTokenEvent"/>
</includeClasses>
<includeResources/>
<namespaceManifests/>
</flexLibProperties>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<flexLibProperties includeAllClasses="true" useMultiPlatformConfig="false" version="3">
<includeClasses>
<classEntry path="com.adobe.protocols.oauth2.OAuth2"/>
<classEntry path="com.adobe.protocols.oauth2.grant.IGrantType"/>
<classEntry path="com.adobe.protocols.oauth2.grant.AuthorizationCodeGrant"/>
<classEntry path="com.adobe.protocols.oauth2.event.IOAuth2Event"/>
<classEntry path="com.adobe.protocols.oauth2.event.GetAccessTokenEvent"/>
<classEntry path="com.adobe.protocols.oauth2.grant.ImplicitGrant"/>
<classEntry path="com.adobe.protocols.oauth2.grant.ResourceOwnerCredentialsGrant"/>
<classEntry path="com.adobe.protocols.oauth2.event.RefreshAccessTokenEvent"/>
<classEntry path="com.adobe.protocols.oauth2.OAuth2Const"/>
</includeClasses>
<includeResources/>
<namespaceManifests/>
</flexLibProperties>
15 changes: 15 additions & 0 deletions src/main/actionscript/com/adobe/protocols/oauth2/OAuth2Const.as
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.adobe.protocols.oauth2
{
public class OAuth2Const
{
public static const GRANT_TYPE_AUTHORIZATION_CODE:String = "authorization_code";
public static const GRANT_TYPE_RESOURCE_OWNER_CREDENTIALS:String = "password";
public static const GRANT_TYPE_REFRESH_TOKEN:String = "refresh_token";

public static const RESPONSE_TYPE_AUTHORIZATION_CODE:String = "code";
public static const RESPONSE_TYPE_IMPLICIT:String = "token";

public static const RESPONSE_PROPERTY_AUTHORIZATION_CODE:String = "code";
public static const RESPONSE_PROPERTY_ACCESS_TOKEN:String = "access_token";
}
}

0 comments on commit 0988ebf

Please sign in to comment.