This disclosure relates generally to access tokens and, more particularly, to methods and apparatus for aliasing scopes in access tokens.
Authentication tokens allow users to verify their identity and, in return, receive a unique access token. During a life of the token, users can access a webpage, application, online resource, etc., that the token has been issued for, rather than needing to re-enter valid user credentials each time they desire to return to the webpage, application, online resource, etc. Therefore, authentication tokens act like a stamped ticket: the user retains access as long as the token remains valid. Once the user logs out, quits, signs off, etc., the token is invalidated.
In general, the same reference numbers will be used throughout the drawing(s) and accompanying written description to refer to the same or like parts. The figures are not necessarily to scale. Unless specifically stated otherwise, descriptors such as “first,” “second,” “third,” etc., are used herein without imputing or otherwise indicating any meaning of priority, physical order, arrangement in a list, and/or ordering in any way, but are merely used as labels and/or arbitrary names to distinguish elements for ease of understanding the disclosed examples. In some examples, the descriptor “first” may be used to refer to an element in the detailed description, while the same element may be referred to in a claim with a different descriptor such as “second” or “third.” In such instances, it should be understood that such descriptors are used merely for identifying those elements distinctly within the context of the discussion (e.g., within a claim) in which the elements might, for example, otherwise share a same name.
Open Authorization (OAuth) is an authorization system that enables an end user's account information to be used by third-party services without exposing the user's credentials to the third-party. OAuth acts as an intermediary on behalf of the end user, providing the third-party service with an access token that authorizes specific end user account information (e.g., files, emails, contacts, etc.) to be shared. The OAuth system provides users with an access token after users have initially provided authentication credentials such as a user name, a password, an identification number, an answer to a security question, an account number, or other types of authentication credentials. The access token enables the user to repeatedly access resources and other protected services of the third-party service without repeatedly providing authentication credentials. This can be very convenient to users as it allows them to access resources and/or services of the third-party service again and again without undergoing the hassle of providing authentication credentials. Additionally, the third-party service receives the access token, but not the user credentials. As such, the user credentials are protected from hackers, malware, etc.
An access token is an object representing the subject of access control operations. For example, an access token is a string that the OAuth client (e.g., a user of the OAuth system) uses to make requests to a third-party service. In some examples, the access token informs the third-party service what the user has access to. In some examples, the information in the access token related to what the user has access to is referred to as a “scope.” A scope is a permission. In order to access a particular resource in a third-party service, a user has to have a particular scope assigned to a corresponding user identity. For example, a user may need an appropriate scope, provided in the access token, to sign into an email account. More generally, scopes include whether the user can read resources from the third-party service, write to resources from the third-party service, create resources in the third-party service, or delete resources (e.g., delete data, objects, etc.) from the third-party service. Therefore, scopes included in the access token inform the third-party service what requests from a client should be allowed and what requests from a client are prohibited.
Although access tokens provide benefits to users and third-party services, there are problems that occur with such access tokens. As third-party services, such as applications, develop over time, new scopes can be added to the user's access token. For example, when an application is upgraded by a developer, the upgrade enables users to create or delete features of the application. As such, a new scope is assigned to the user's access token to enable them (the user) to create or delete those features. Therefore, third-party services may provide the user with options for many scopes because, as features are added, new scopes are required. As a result, the size (e.g., bit size) of the access token increases. This increase in size causes issues with web servers. For example, web servers (e.g., a server or web browser program that stores and delivers content for a website, such as text, images, video, and application data) may accept a limited HTTP header size (e.g., 8 KB, 10 KB, etc.). Additionally, the increased size of the access token increases the utilization of network bandwidth.
A secondary issue is that access tokens are not encrypted. Instead of encryption, access tokens are signed. For example, access tokens use private/public key pairs to sign and verify access to specific resources (e.g., documents, programs, etc.). However, because the access tokens are not encrypted, they are visible to anyone. Usually every resource owner defines identity authentication measurement (IAM) scopes based on a) the service where the resource exists and b) the resource name and operations that can be performed on that service. An example IAM scope may look like “service.resource.[c,r,u,d]”, where “c, r, u, d,” refers to create, read, update, delete. If a scope becomes directly visible in the token (e.g., because the third-party service has not taken measures to hide the scopes), then a malicious actor can gain access to the resources being exposed by a service. Even though encrypting access tokens would facilitate preventing malicious actors from gaining access to resources exposed by the third-party service, such encryption causes latency to authentication.
Therefore, examples disclosed herein create an alias scope. As described further herein, an “alias” or “alias scope” is a value (e.g., numerical, alpha-numerical, etc.) that represents one or more scopes assigned to a user. The alias scope reduces the size of an access token and obfuscates the one or more scopes in the access token without having to encrypt the token. In some examples, the OAuth server enables an administrator to create an alias for one or more scopes. In some examples, the OAuth server dynamically creates an alias for one or more scopes.
The resource owner 104 creates an identity in order to own the data (e.g., files, pictures, emails, etc.) that resides in the online resource 112. The example resource owner 104 can be an end user (e.g., employee, student, etc.) who requests to create an identity to access to the online resource 112 (e.g., Microsoft 365). To do so, the resource owner 104 uses the client application 106 (e.g., Google web browser, Yahoo web browser, mobile app, etc.) on an example device and navigates to the online resource 112. For example, the resource owner 104 causes the client application 106 to transmit a HTTP request requesting to create an access to the online resource 112. The end user communications circuitry 114 prompts the resource owner 104 to enter user identity details (e.g., user credentials, such as a username and password). Before the client application 106 can display/access the online resource 112, the end user communications circuitry 114 prompts the resource owner 104 to enter desired scopes (e.g., create, read, update, delete) for the online resource 112. For example, the resource owner 104 enters and/or selects what type of access he/she is to have to the online resource 112. In some examples, this access can include a subscription-type access, a management-type access, and/or a simple resource-type access. Within each type of access, the resource owner 104 can identify what sub-type of access he/she wants to the online resource 112. For example, the resource owner 104 enters and/or selects whether he/she wants to be able to read, write, create, update, or delete the online resource 112. These “accesses” are referred to as scopes. In some examples, when resource owner 104 enters and/or selects what scopes he/she wants, those scopes are assigned to the identity of the user and referred to as scope assignments. In some examples, a scope assignment can include a single scope or a combination of scopes. Then, the client application 106 transmits the user credentials and the scopes to the authentication server 108.
In some examples, the resource owner 104 requests access (e.g., rather than requesting creation of an identity) to the online resource 112. In this example, the resource owner 104 uses the client application 106 (e.g., Google web browser, Yahoo web browser, mobile app, etc.) on the example device and navigates to the online resource 112. Before the client application 106 can display/access the online resource 112, the end user communications circuitry 114 prompts the resource owner 104 to enter user credentials (e.g., username and password). Then, the client application 106 transmits the user credentials to the authentication server 108.
The example authentication server 108 is an OAuth server that includes the example alias generation circuitry 102, example token generator circuitry 120, example permissions controller circuitry 122, and an example authentication database 124. The example authentication server 108 may be implemented by one or more servers and/or cloud services to provide authentication information associated with queries from resource owners (e.g., the resource owner 104). The example alias generation circuitry 102 looks up and/or generates an alias (alias scope) for the scopes associated with the user credentials, which is described in further detail below in connection with
In some examples, the token accessing circuitry 116 accesses the token from the permissions controller circuitry 122. In other words, the authentication server 108 authenticates the request associated with the resource owner 104 by transmitting the token to the client application 106. As such, the resource deployment circuitry 118 requests the online resource 112 from the resource server 110 and provides the online resource 112 to the resource owner 104. Thus, the resource owner 104 can access the data in the online resource 112.
In some examples, the authentication server 108 may reject (e.g., unauthorize, limit, etc.) a request to access the online resource 112. In particular, the example permissions controller circuitry 122 may withhold the access token based on an identifier (e.g., an example IP address 126) of the example device associated with the request (e.g., the HTTP request). For example, an unauthorized user may attempt to gain access to the online resource 112. The example permissions controller circuitry 122 can identify the unauthorized user because the device identifier associated with the request may not match the device identifier associated with the resource owner 104.
The example alias generation circuitry 102 includes example alias lookup circuitry 202, an example character counter 204, example alias scope generation circuitry 206, example alias mapping circuitry 208, example assignment circuitry 210, and an example datastore 212. In some examples, the alias lookup circuitry 202 is instantiated by programmable circuitry executing alias lookup instructions and/or configured to perform operations such as those represented by the flowchart(s) of
In
In some examples, the alias lookup circuitry 202 receives a scope assignment and determines whether an alias has been created for the combination of scopes in the scope assignment. In some examples, the alias lookup circuitry 202 does this based on scope mappings, discussed in further detail below in connection with the alias mapping circuitry 208. Additionally and/or alternatively, the example alias lookup circuitry 202 executes any type of matching algorithm to determine whether the combination of scopes in the scope assignment have a corresponding alias. The example alias lookup circuitry 202 performs lookups in the datastore 212. For example, the datastore 212 includes one or more aliases 214 and one or more scope assignments 216. An example alias n 214 may correspond to an example scope assignment n 216. In such an example, the alias lookup circuitry 202 determines that an alias exists for a particular scope assignment.
In some examples, before the alias lookup circuitry 202 determines whether an alias has been created for the combination of scopes in the scope assignment, the alias lookup circuitry 202 determines how many scopes are in the scope assignment. In some examples, if the alias lookup circuitry 202 determines that less than a predefined number of scopes (e.g., three (3) scopes) are in the scope assignment, the alias lookup circuitry 202 does not perform a lookup in the datastore 212. If the alias lookup circuitry 202 determines that at least three (3) scopes are included in the scope assignment, then the alias lookup circuitry 202 performs the lookup.
The example alias lookup circuitry 202 notifies the character counter 204 when an alias has not been found. For example, when no alias exists for the scope assignment, the alias lookup circuitry 202 informs the character counter 204 to parse and analyze a number of characters in the scope assignment. In some examples, when an alias exists for the scope assignment, the alias lookup circuitry 202 provides the alias to the example assignment circuitry 210 to assign the alias to the user credentials.
In some examples, the alias lookup circuitry 202 includes means for looking up aliases. For example, the means for looking up aliases may be implemented by alias lookup circuitry 202. In some examples, the alias lookup circuitry 202 may be instantiated by programmable circuitry such as the example programmable circuitry 812 of
In
The following example is of a JavaScript Object Notation (JSON) web token (JWT) (e.g., an access token, OAuth token) associated with user identifier (ID) 123:
The “jwt.encode( )” function has three arguments. The first argument is the payload and includes the “user_id”, the “username”, the “roles”, and the “scopes”. The second argument is a secret key (“secret_key”). The secret key is a string that is used in an algorithm that generates a cryptographic signature for the access token. In some examples, this key is known by the authentication server 108 (
The value of the “token” at the end of the example JWT is the value returned by “jwt.encode( )”. For example, the byte string at the end of the JWT is the final token provided to the resource owner 104.
In
In some examples, the character counter 204 includes means for counting characters in a scope assignment. For example, the means for counting characters in a scope assignment may be implemented by character counter circuitry 204. In some examples, the character counter circuitry 204 may be instantiated by programmable circuitry such as the example programmable circuitry 812 of
In
In some examples, when the alias scope generation circuitry 206 uses hexadecimal values for aliases, the alias scope generation circuitry 206 iterates through hexadecimal values per new scope assignments. For example, the alias scope generation circuitry 206 obtains a first-in-time scope assignment (e.g., the first scope assignment received having more than a threshold number of characters) and generates an alias having hexadecimal value equal to 0000 0001. Then, the alias scope generation circuitry 206 obtains a second-in-time scope assignment (e.g., the second scope assignment, having a combination of scopes different from the first-in-time scope assignment, received having more than a threshold number of characters) and generates an alias having hexadecimal value equal to 0000 0010. In some examples, the alias scope generation circuitry 206 obtains a tenth-in-time scope assignment (e.g., the tenth scope assignment, having a combination of scopes different from the first nine scope assignments, received having more than a threshold number of characters) and generates an alias having hexadecimal value equal to 0000 000A.
In some examples, the alias scope generation circuitry 206 increments the hexadecimal values per newly received scope assignments by implementing an incrementing algorithm. In some examples, the alias scope generation circuitry 206 does not increment the hexadecimal values and, instead, generates a random hexadecimal value per newly received scope assignments. In this example, the alias scope generation circuitry 206 checks the example datastore 212 after generating the random hexadecimal value to determine whether that hexadecimal value is already assigned as an alias. Similarly, when the example alias scope generation circuitry 206 generates GUIDs as aliases, the example alias scope generation circuitry 206 checks the example datastore 212 to determine whether that random GUID value is already assigned as an alias. If the example alias scope generation circuitry 206 determines the randomly generated value (e.g., hexadecimal, GUID, or other unique value) is assigned as an alias, the example alias scope generation circuitry 206 generates a new and different value having the threshold number of characters.
The example alias scope generation circuitry 206 provides the alias to the example alias mapping circuitry 208 to map the alias to the scope assignment. In this manner, the example alias scope generation circuitry 206 reduces the character size of the scope utilized in an access token and, thus, reduces a size of the access token. Additionally, the example alias scope generation circuitry 206 obfuscates the scopes in the access token. For example, the access token includes a random value (e.g., hexadecimal, GUID, etc.) rather than the actual scope assignment (e.g., ResourceA.scope.read, ResourceA.scope.write, etc.). Therefore, the example alias scope generation circuitry 206 protects the resources and resource owner 104 from malicious actors attempting to gain insight into the permissions the resource owner 104 has.
In some examples, the alias scope generation circuitry 206 includes means for generating an alias. For example, the means for generating an alias may be implemented by alias scope generation circuitry 206. In some examples, the alias scope generation circuitry 206 may be instantiated by programmable circuitry such as the example programmable circuitry 812 of
In
In some examples, the alias mapping circuitry 208 includes means for mapping. For example, the means for mapping may be implemented by alias mapping circuitry 208. In some examples, the alias mapping circuitry 208 may be instantiated by programmable circuitry such as the example programmable circuitry 812 of
In
In some examples, the assignment circuitry 210 includes means for assigning permissions information to user credentials. For example, the means for assigning permissions information to user credentials may be implemented by assignment circuitry 210. In some examples, the assignment circuitry 210 may be instantiated by programmable circuitry such as the example programmable circuitry 812 of
In
In some examples, the alias generation circuitry 102 does not implement the example datastore 212 and, instead, stores aliases 214, scope assignments 216, alias mapping information 218, and user identities 220 in the example authentication database 124. For example, the alias scope generation circuitry 206 stores alias n 214 and scope assignment n 216 in the example authentication database 124, the alias mapping circuitry 208 stores alias mapping information 218 in the example authentication database 124, and the assignment circuitry 210 stores user identity n 220 in the example authentication database 124.
At arrow 306, the authentication server 108 stores (e.g., saves, persists, etc.) the client identity information (e.g., client type, the information associated with the client 302, information associated with the client application 106, etc.) in the authentication database 124.
At arrow 308, the example client 302 assigns scopes (e.g., permissions) to the client identity and corresponding service (e.g., client application 106). For example, the client 302 provides scope assignments to the authentication server 108 for the particular client identity.
At arrow 310, the example authentication server 108 looks up an alias for the scope assignment. For example, the alias lookup circuitry 202 of the alias generation circuitry 102 executes a matching algorithm in the authentication database 124 to identify an alias that corresponds to the scope assignment. In some examples, the alias lookup circuitry 202 may not execute the matching algorithm if the scope assignment includes less than a predefined number of scopes (e.g., three (3) scopes).
If the authentication database 124 does not return an alias for the scope assignment, the authentication server 108 executes arrow 312. At arrow 312, the authentication server 108 creates a new alias with the scopes provided in the scope assignment. For example, the character counter 204 is initiated to determine a number of characters in the scope assignment counts the characters in the scope assignment to determine whether generating an alias for the scope assignment would reduce the size of the scope assignment. Then, when it is determined that an alias would reduce the size of the scope assignment based on the total number of characters counted in the scope assignment, the alias scope generation circuitry 206 generates the alias. Then, the example alias mapping circuitry 208 maps the alias to the scope assignment.
At arrow 314, the authentication server 108 updates the client identity and stores the updated client identity in the authentication database 124. For example, the assignment circuitry 210 assigns scope information (e.g., scope(s) and/or an alias) to the user credentials. In some examples, when the authentication database 124 returns an alias after arrow 310, the assignment circuitry 210 assigns that alias to the client identity. In some examples, when the authentication server 108 and/or alias lookup circuitry 202 determines that an alias is not appropriate (e.g., because an alias would be greater in character size than the character size of the scope assignment), the assignment circuitry 210 assigns the scope assignment to the client identity, without including an alias. In some examples, when the authentication server 108 and/or the alias scope generation circuitry 206 generates a new alias at arrow 312, the assignment circuitry 210 assigns the new alias to the client identity. The example authentication server 108 stores the client identity with assigned alias and/or scopes in the example authentication database 124.
At arrow 316, the client application 106 requests an access token from the authentication server 108 using the client credentials. In some examples, the client application 106 requests an access token in response to an HTTP request from the resource owner 104 requesting access to the online resource 112. For example, the client application 106 may need an access token to permit the resource owner 104 access to the online resource 112.
At arrow 318, the authentication server 108 verifies that the client credentials provided by the client application 106 match the client credentials that the authentication server 108 assigned to the client 302 (arrow 306) and lookup scope information related to the verified client credentials. In other words, the authentication server 108 validates the client credentials and requests scope information (e.g., aliases and/or scope assignments). In this example, the client credentials that the authentication server 108 issued to the client 302 are stored in the authentication database 124.
At arrow 320, the example authentication server 108 generates an access token. For example, the token generator circuitry 120 (
In this example, the resource server 110 is a generic service different from the authentication server 108. For example, the resource server 110 is a third party server (e.g., Google™, Facebook®, etc.). The resource server 110 has to validate access tokens obtained from a client application (e.g., client application 106). In some examples, the authentication server 108 includes and/or contains a signing key or secret key that validates the access token. For example, as described above in connection with the JSON web token (JWT) for user ID 123, the JWT includes a secret key which is only known by the authentication server 108 (because it is more beneficial to have the signing key safely stored in the authentication service, and only used to generate keys). When only the authentication server has the secret key, other services such, as the resource server 110, can verify the access token without having access to this secret key. For example, the resource server 110 and the authentication server 108 utilize public-key cryptography. Public-key cryptography is based on encryption keys that have two components: a public key and a private key, where the public key component can be shared freely. One workflow for public-key cryptography is message signing. Message signing includes the authentication server 108 signing a message (e.g., signing the access token), using a private signing key, to certify that the message came from the authentication server 108. Any interested third party server (e.g., the resource server 110) can verify the message (e.g., the access token) by using a public key generated by the authentication server 108 to confirm that the signature is valid. Therefore, the resource server 110 has to periodically request public keys from the authentication server 108.
The example sequence 400 begins at arrow 402 as the example resource server 110 requests public key(s) from the example authentication server 108. The example authentication server 108 generates public keys for the example resource server 110 to use, and the example authentication server 108 generates public keys for the resource owner 104 to use.
At arrow 404, the example resource server 110 caches the public key(s) received from the example authentication server 108. For example, the resource server 110 stores the public keys in a local datastore, local memory, etc.
At arrow 406, the example resource server 110 requests alias scope mapping information from the example authentication server 108. For example, when alias scope mapping information is utilized by the authentication server 108, the authentication server 108 notifies and/or causes the resource server 110 to retrieve alias scope mapping information. In some examples, the authentication server 108 may respond to a request for public key(s) with the public key(s) plus an instruction to retrieve alias scope mapping information. For example, the permissions controller circuitry 122 may generate an instruction to cause the resource server 110 to request alias scope mapping information. Additionally and/or alternatively, the example alias generation circuitry 102 may generate an instruction to cause the resource server 110 to request alias scope mapping information. Additionally and/or alternatively, the example token generator circuitry 120 may generate an instruction to cause the resource server 110 to request alias scope mapping information. In some examples, the instructions causes the resource server 110 to request a number of alias scopes issued within a given time period. For example, the resource server 110 may request alias scope mapping information issued during a lifespan for an access token. The example token generator circuitry 120 assigns lifespans (e.g., 5 minutes, 10 minutes, 30 minutes, an hour, etc.) to access tokens. In some examples, a new access token may include a new alias scope not yet stored (e.g., cached) by the resource server 110. Therefore, the example resource server 110 requests only alias scopes issued within a given time period, the time period associated with the lifespan of access tokens.
At arrow 408, the example resource server 110 caches the alias scope mapping information. For example, the resource server 110 stores the alias scope mapping information in a local datastore, local memory, etc.
At arrow 410, the example client application 106 requests that the example resource server 110 validate an access token. For example, the client application 106 transmits the access token (e.g., Oauth token) in response to a request (e.g., HTTP request) from the resource owner 104 to access the online resource 112. The request to validate the access token includes the public key information.
At arrow 412, the example resource server 110 uses the alias scope mapping information to look up scopes that are included in the access token (e.g., Oauth token). For example, if the client application 106 provided an access token including an alias, the resource server 110 has to de-alias the alias in order to obtain the scopes that correspond to the client ID.
At arrow 414, the example resource server 110 checks the cache for alias scope mapping information. In some examples, the resource server 110 checks a look up table (stored in the cache as alias scope mapping information) using the scope(s) in the access token.
At arrow 416, the example resource server 110 replaces the alias with the scopes if the resource server 110 has successfully identified the scope(s) mapped to the alias.
At arrow 418, the example resource server 110 may transmit a message indicating that the request and the end user who requested the online resource 112 are authorized. For example, the resource server 110 may determine (1) that the access token is valid and (2) that the scope(s) corresponding to the alias have been identified. In this manner, the end user (e.g., the resource owner 104) obtains specific permissions (e.g., pre-assigned scopes) to the online resource 112.
In some examples, if the resource server 110 does not identify a scope mapped to the respective alias and/or does not validate the access token, the resource server 110 may return a request to the client application 106 as “unauthorized.” For example, at arrow 420, the resource server 110 notifies the client application 106 that the resource owner 104 cannot access the online resource 112. In some examples, the resource server 110 transmits a message to the client application 106, the message indicating that the request and the end user who requested the online resource 112 are unauthorized. However, any other type of response message that does not provide access to the online resource 112 may additionally or alternatively be used. In this manner, the end user may not have access to the online resource 112.
While an example manner of implementing the alias generation circuitry 102 of
Flowcharts representative of example machine readable instructions, which may be executed by programmable circuitry to implement and/or instantiate the alias generation circuitry 102 of
The program may be embodied in instructions (e.g., software and/or firmware) stored on one or more non-transitory computer readable and/or machine readable storage medium such as cache memory, a magnetic-storage device or disk (e.g., a floppy disk, a Hard Disk Drive (HDD), etc.), an optical-storage device or disk (e.g., a Blu-ray disk, a Compact Disk (CD), a Digital Versatile Disk (DVD), etc.), a Redundant Array of Independent Disks (RAID), a register, ROM, a solid-state drive (SSD), SSD memory, non-volatile memory (e.g., electrically erasable programmable read-only memory (EEPROM), flash memory, etc.), volatile memory (e.g., Random Access Memory (RAM) of any type, etc.), and/or any other storage device or storage disk. The instructions of the non-transitory computer readable and/or machine readable medium may program and/or be executed by programmable circuitry located in one or more hardware devices, but the entire program and/or parts thereof could alternatively be executed and/or instantiated by one or more hardware devices other than the programmable circuitry and/or embodied in dedicated hardware. The machine readable instructions may be distributed across multiple hardware devices and/or executed by two or more hardware devices (e.g., a server and a client hardware device). For example, the client hardware device may be implemented by an endpoint client hardware device (e.g., a hardware device associated with a human and/or machine user) or an intermediate client hardware device gateway (e.g., a radio access network (RAN)) that may facilitate communication between a server and an endpoint client hardware device. Similarly, the non-transitory computer readable storage medium may include one or more mediums. Further, although the example program is described with reference to the flowchart(s) illustrated in
The machine readable instructions described herein may be stored in one or more of a compressed format, an encrypted format, a fragmented format, a compiled format, an executable format, a packaged format, etc. Machine readable instructions as described herein may be stored as data (e.g., computer-readable data, machine-readable data, one or more bits (e.g., one or more computer-readable bits, one or more machine-readable bits, etc.), a bitstream (e.g., a computer-readable bitstream, a machine-readable bitstream, etc.), etc.) or a data structure (e.g., as portion(s) of instructions, code, representations of code, etc.) that may be utilized to create, manufacture, and/or produce machine executable instructions. For example, the machine readable instructions may be fragmented and stored on one or more storage devices, disks and/or computing devices (e.g., servers) located at the same or different locations of a network or collection of networks (e.g., in the cloud, in edge devices, etc.). The machine readable instructions may require one or more of installation, modification, adaptation, updating, combining, supplementing, configuring, decryption, decompression, unpacking, distribution, reassignment, compilation, etc., in order to make them directly readable, interpretable, and/or executable by a computing device and/or other machine. For example, the machine readable instructions may be stored in multiple parts, which are individually compressed, encrypted, and/or stored on separate computing devices, wherein the parts when decrypted, decompressed, and/or combined form a set of computer-executable and/or machine executable instructions that implement one or more functions and/or operations that may together form a program such as that described herein.
In another example, the machine readable instructions may be stored in a state in which they may be read by programmable circuitry, but require addition of a library (e.g., a dynamic link library (DLL)), a software development kit (SDK), an application programming interface (API), etc., in order to execute the machine-readable instructions on a particular computing device or other device. In another example, the machine readable instructions may need to be configured (e.g., settings stored, data input, network addresses recorded, etc.) before the machine readable instructions and/or the corresponding program(s) can be executed in whole or in part. Thus, machine readable, computer readable and/or machine readable media, as used herein, may include instructions and/or program(s) regardless of the particular format or state of the machine readable instructions and/or program(s).
The machine readable instructions described herein can be represented by any past, present, or future instruction language, scripting language, programming language, etc. For example, the machine readable instructions may be represented using any of the following languages: C, C++, Java, C#, Perl, Python, JavaScript, HyperText Markup Language (HTML), Structured Query Language (SQL), Swift, etc.
As mentioned above, the example operations of
“Including” and “comprising” (and all forms and tenses thereof) are used herein to be open ended terms. Thus, whenever a claim employs any form of “include” or “comprise” (e.g., comprises, includes, comprising, including, having, etc.) as a preamble or within a claim recitation of any kind, it is to be understood that additional elements, terms, etc., may be present without falling outside the scope of the corresponding claim or recitation. As used herein, when the phrase “at least” is used as the transition term in, for example, a preamble of a claim, it is open-ended in the same manner as the term “comprising” and “including” are open ended. The term “and/or” when used, for example, in a form such as A, B, and/or C refers to any combination or subset of A, B, C such as (1) A alone, (2) B alone, (3) C alone, (4) A with B, (5) A with C, (6) B with C, or (7) A with B and with C. As used herein in the context of describing structures, components, items, objects and/or things, the phrase “at least one of A and B” is intended to refer to implementations including any of (1) at least one A, (2) at least one B, or (3) at least one A and at least one B. Similarly, as used herein in the context of describing structures, components, items, objects and/or things, the phrase “at least one of A or B” is intended to refer to implementations including any of (1) at least one A, (2) at least one B, or (3) at least one A and at least one B. As used herein in the context of describing the performance or execution of processes, instructions, actions, activities, etc., the phrase “at least one of A and B” is intended to refer to implementations including any of (1) at least one A, (2) at least one B, or (3) at least one A and at least one B. Similarly, as used herein in the context of describing the performance or execution of processes, instructions, actions, activities, etc., the phrase “at least one of A or B” is intended to refer to implementations including any of (1) at least one A, (2) at least one B, or (3) at least one A and at least one B.
As used herein, singular references (e.g., “a”, “an”, “first”, “second”, etc.) do not exclude a plurality. The term “a” or “an” object, as used herein, refers to one or more of that object. The terms “a” (or “an”), “one or more”, and “at least one” are used interchangeably herein. Furthermore, although individually listed, a plurality of means, elements, or actions may be implemented by, e.g., the same entity or object. Additionally, although individual features may be included in different examples or claims, these may possibly be combined, and the inclusion in different examples or claims does not imply that a combination of features is not feasible and/or advantageous.
At block 504, the example authentication server 108 accesses a scope assignment associated with the user of the computing device, the scope assignment including one or more scopes for the online resource 112. For example, the alias generation circuitry 102 (
At block 506, the example authentication server 108 looks up an alias for the scope assignment. For example, the alias generation circuitry 102 (
At block 508, the example authentication server 108 determines whether an alias has been found. For example, the alias generation circuitry 102 and/or the alias lookup circuitry 202 informs the authentication server 108 whether a match has been found.
If the example authentication server 108 determines that an alias has not been found (block 508 returns a value NO), the example authentication server 108 creates a new alias for the scope assignment (block 510). For example, the alias generation circuitry 102 and/or the alias scope generation circuitry 206 creates an alias, not yet used, for the scope assignment as described in detail in connection with
At block 512, the example authentication server 108 updates the identity with the new alias. For example, the alias generation circuitry 102 and/or the assignment circuitry 210 (
At block 514, the example authentication server 108 stores the identity in the authentication database 124 (
In some examples, when the authentication server 108 determines that an alias has been found (block 508 returns a value YES), the example authentication server 108 stores the identity in the authentication database 124 (block 514). For example, when the authentication server 108 receives the request to create an identity to access an online resource 112, the authentication server 108 uses the identifying information (e.g., user credentials) of the resource owner 104 and the scope assignment and/or alias to create the identity and store it in the authentication database 124.
The example operations 500 end when the identity has been stored in the example authentication database 124. The example operations 500 may be repeated when the example authentication server 108 receives a request, via a message, to create a new identity for a resource owner.
At block 604, the example character counter 204 determines whether the total number of characters satisfies a threshold number of characters. For example, the character counter 204 compares the total number of characters to a threshold number of characters to determine whether generating an alias for the scope assignment would reduce the size of the scope assignment.
If the example character counter 204 determines that the total number of characters does not satisfy the threshold number of characters (block 604 returns a value NO), then the example operations 600 end, and control is returned to block 512 of
If the example character counter 204 determines that the total number of characters satisfies the threshold number of characters (block 604 returns a value YES), the example alias scope generation circuitry 206 generates a random alias, the alias having a number of characters less than the total number of characters in the scope assignment (block 606). For example, the alias scope generation circuitry 206 creates a hexadecimal value, not used before, having the threshold number of characters. Additionally and/or alternatively, the alias scope generation circuitry 206 creates a GUID value, not used before, having the less than threshold number of characters.
At block 608, the example alias mapping circuitry 208 maps the alias to the scope assignment. For example, the alias mapping circuitry 208 generates mapping information (e.g., a lookup table, a hash table, and/or other types of mapping information) that enables a third party, such as the resource server 110, to “de-alias” the alias. De-aliasing the alias refers to the process of converting the alias back to the original scope assignment. In some examples, de-aliasing is necessary in order for the third party (e.g., resource server 110) to give the user (e.g., the resource owner 104) appropriate permissions to the requested resource (e.g., online resource 112). For example, a third party server, when authenticating and/or validating an access token, transmits the access token having the original scope assignments, to the device associated with the resource owner 104, via the client application 106. When the client application 106 obtains the access token, the resource owner 104 is authorized to access the online resource 112, where the authorization is limited to the scopes in the access token.
At block 610, the example alias mapping circuitry 208 stores the alias scope mapping information in the example authentication database 124. In some examples, the alias mapping circuitry 208 stores (e.g., caches) the alias scope mapping information in the datastore 212 (
The example operations 600 end when the alias scope mapping information is stored (e.g., cached) and control returns to block 512 of
At block 704, the example authentication server 108 detects a request for alias scope mapping information. In some examples, the resource server 110 simultaneously requests information related identifying a scope assignment when an alias has taken the scope assignment's place in the access token. In some examples, the resource server 110 may not request alias scope mapping information. For example, the resource server 110 may not be aware of the need for alias scope mapping information. In such an example, the authentication server 108 may notify the resource server 110 that alias scope mapping information is available for use in identifying scope assignments. In some examples, the authentication server 108 may instruct the resource server 110 to request alias scope mapping information. For example, the authentication server 108 may respond to the request for a public key with an instruction to request alias scope mapping information. Additionally and/or alternatively, the example authentication server 108 causes the resource server 110 to request alias scope mapping information.
At block 706, the example authentication server 108 sends the public key(s) and the alias scope mapping information to the example resource server 110. For example, the permissions controller circuitry 122 provides the public key(s) and alias scope mapping information to the resource server 110.
The example operations 700 end when the example authentication server 108 provides the example resource server 110 with one or more public keys and alias scope mapping information. In some examples, the alias scope mapping information is periodically and/or dynamically updated based on new aliases generated. In such an example, the authentication server 108 sends alias scope mapping information each time a request for public keys is detected and/or obtained. Therefore, the example resource server 110 includes an updated list of alias scope mapping information and can accurately de-alias the aliases.
The programmable circuitry platform 800 of the illustrated example includes programmable circuitry 812. The programmable circuitry 812 of the illustrated example is hardware. For example, the programmable circuitry 812 can be implemented by one or more integrated circuits, logic circuits, FPGAs, microprocessors, CPUs, GPUs, DSPs, and/or microcontrollers from any desired family or manufacturer. The programmable circuitry 812 may be implemented by one or more semiconductor based (e.g., silicon based) devices. In this example, the programmable circuitry 812 implements the example alias generation circuitry 102, the example token generator circuitry 120, the example permissions controller circuitry 122, the example alias lookup circuitry 202, the example character counter 204, the example alias scope generation circuitry 206, the example alias mapping circuitry 208, and the example assignment circuitry 210.
The programmable circuitry 812 of the illustrated example includes a local memory 813 (e.g., a cache, registers, etc.). The programmable circuitry 812 of the illustrated example is in communication with main memory 814, 816, which includes a volatile memory 814 and a non-volatile memory 816, by a bus 818. The volatile memory 814 may be implemented by Synchronous Dynamic Random Access Memory (SDRAM), Dynamic Random Access Memory (DRAM), RAMBUS® Dynamic Random Access Memory (RDRAM®), and/or any other type of RAM device. The non-volatile memory 816 may be implemented by flash memory and/or any other desired type of memory device. Access to the main memory 814, 816 of the illustrated example is controlled by a memory controller 817. In some examples, the memory controller 817 may be implemented by one or more integrated circuits, logic circuits, microcontrollers from any desired family or manufacturer, or any other type of circuitry to manage the flow of data going to and from the main memory 814, 816.
The programmable circuitry platform 800 of the illustrated example also includes interface circuitry 820. The interface circuitry 820 may be implemented by hardware in accordance with any type of interface standard, such as an Ethernet interface, a universal serial bus (USB) interface, a Bluetooth® interface, a near field communication (NFC) interface, a Peripheral Component Interconnect (PCI) interface, and/or a Peripheral Component Interconnect Express (PCIe) interface.
In the illustrated example, one or more input devices 822 are connected to the interface circuitry 820. The input device(s) 822 permit(s) a user (e.g., a human user, a machine user, etc.) to enter data and/or commands into the programmable circuitry 812. The input device(s) 822 can be implemented by, for example, an audio sensor, a microphone, a keyboard, a button, a mouse, a touchscreen, a trackpad, a trackball, an isopoint device, and/or a voice recognition system.
One or more output devices 824 are also connected to the interface circuitry 820 of the illustrated example. The output device(s) 824 can be implemented, for example, by display devices (e.g., a light emitting diode (LED), an organic light emitting diode (OLED), a liquid crystal display (LCD), a cathode ray tube (CRT) display, and/or an in-place switching (IPS) display, a touchscreen, etc.). The interface circuitry 820 of the illustrated example, thus, typically includes a graphics driver card, a graphics driver chip, and/or graphics processor circuitry such as a GPU.
The interface circuitry 820 of the illustrated example also includes a communication device such as a transmitter, a receiver, a transceiver, a modem, a residential gateway, a wireless access point, and/or a network interface to facilitate exchange of data with external machines (e.g., computing devices of any kind) by a network 826. The communication can be by, for example, an Ethernet connection, a digital subscriber line (DSL) connection, a telephone line connection, a coaxial cable system, a satellite system, a beyond-line-of-sight wireless system, a line-of-sight wireless system, a cellular telephone system, an optical connection, etc.
The programmable circuitry platform 800 of the illustrated example also includes one or more mass storage discs or devices 828 to store firmware, software, and/or data. Examples of such mass storage discs or devices 828 include magnetic storage devices (e.g., floppy disk, drives, HDDs, etc.), optical storage devices (e.g., Blu-ray disks, CDs, DVDs, etc.), RAID systems, and/or solid-state storage discs or devices such as flash memory devices and/or SSDs. In this example, the mass storage discs or devices 828 implement the example datastore 212 of
The machine readable instructions 832, which may be implemented by the machine readable instructions of
The cores 902 may communicate by a first example bus 904. In some examples, the first bus 904 may be implemented by a communication bus to effectuate communication associated with one(s) of the cores 902. For example, the first bus 904 may be implemented by at least one of an Inter-Integrated Circuit (I2C) bus, a Serial Peripheral Interface (SPI) bus, a PCI bus, or a PCIe bus. Additionally or alternatively, the first bus 904 may be implemented by any other type of computing or electrical bus. The cores 902 may obtain data, instructions, and/or signals from one or more external devices by example interface circuitry 906. The cores 902 may output data, instructions, and/or signals to the one or more external devices by the interface circuitry 906. Although the cores 902 of this example include example local memory 920 (e.g., Level 1 (L1) cache that may be split into an L1 data cache and an L1 instruction cache), the microprocessor 900 also includes example shared memory 910 that may be shared by the cores (e.g., Level 2 (L2 cache)) for high-speed access to data and/or instructions. Data and/or instructions may be transferred (e.g., shared) by writing to and/or reading from the shared memory 910. The local memory 920 of each of the cores 902 and the shared memory 910 may be part of a hierarchy of storage devices including multiple levels of cache memory and the main memory (e.g., the main memory 814, 816 of
Each core 902 may be referred to as a CPU, DSP, GPU, etc., or any other type of hardware circuitry. Each core 902 includes control unit circuitry 914, arithmetic and logic (AL) circuitry (sometimes referred to as an ALU) 916, a plurality of registers 918, the local memory 920, and a second example bus 922. Other structures may be present. For example, each core 902 may include vector unit circuitry, single instruction multiple data (SIMD) unit circuitry, load/store unit (LSU) circuitry, branch/jump unit circuitry, floating-point unit (FPU) circuitry, etc. The control unit circuitry 914 includes semiconductor-based circuits structured to control (e.g., coordinate) data movement within the corresponding core 902. The AL circuitry 916 includes semiconductor-based circuits structured to perform one or more mathematic and/or logic operations on the data within the corresponding core 902. The AL circuitry 916 of some examples performs integer based operations. In other examples, the AL circuitry 916 also performs floating-point operations. In yet other examples, the AL circuitry 916 may include first AL circuitry that performs integer-based operations and second AL circuitry that performs floating-point operations. In some examples, the AL circuitry 916 may be referred to as an Arithmetic Logic Unit (ALU).
The registers 918 are semiconductor-based structures to store data and/or instructions such as results of one or more of the operations performed by the AL circuitry 916 of the corresponding core 902. For example, the registers 918 may include vector register(s), SIMD register(s), general-purpose register(s), flag register(s), segment register(s), machine-specific register(s), instruction pointer register(s), control register(s), debug register(s), memory management register(s), machine check register(s), etc. The registers 918 may be arranged in a bank as shown in
Each core 902 and/or, more generally, the microprocessor 900 may include additional and/or alternate structures to those shown and described above. For example, one or more clock circuits, one or more power supplies, one or more power gates, one or more cache home agents (CHAs), one or more converged/common mesh stops (CMSs), one or more shifters (e.g., barrel shifter(s)) and/or other circuitry may be present. The microprocessor 900 is a semiconductor device fabricated to include many transistors interconnected to implement the structures described above in one or more integrated circuits (ICs) contained in one or more packages.
The microprocessor 900 may include and/or cooperate with one or more accelerators (e.g., acceleration circuitry, hardware accelerators, etc.). In some examples, accelerators are implemented by logic circuitry to perform certain tasks more quickly and/or efficiently than can be done by a general-purpose processor. Examples of accelerators include ASICs and FPGAs such as those discussed herein. A GPU, DSP and/or other programmable device can also be an accelerator. Accelerators may be on-board the microprocessor 900, in the same chip package as the microprocessor 900 and/or in one or more separate packages from the microprocessor 900.
More specifically, in contrast to the microprocessor 900 of
In the example of
In some examples, the binary file is compiled, generated, transformed, and/or otherwise output from a uniform software platform utilized to program FPGAs. For example, the uniform software platform may translate first instructions (e.g., code or a program) that correspond to one or more operations/functions in a high-level language (e.g., C, C++, Python, etc.) into second instructions that correspond to the one or more operations/functions in an HDL. In some such examples, the binary file is compiled, generated, and/or otherwise output from the uniform software platform based on the second instructions. In some examples, the FPGA circuitry 1000 of
The FPGA circuitry 1000 of
The FPGA circuitry 1000 also includes an array of example logic gate circuitry 1008, a plurality of example configurable interconnections 1010, and example storage circuitry 1012. The logic gate circuitry 1008 and the configurable interconnections 1010 are configurable to instantiate one or more operations/functions that may correspond to at least some of the machine readable instructions of
The configurable interconnections 1010 of the illustrated example are conductive pathways, traces, vias, or the like that may include electrically controllable switches (e.g., transistors) whose state can be changed by programming (e.g., using an HDL instruction language) to activate or deactivate one or more connections between one or more of the logic gate circuitry 1008 to program desired logic circuits.
The storage circuitry 1012 of the illustrated example is structured to store result(s) of the one or more of the operations performed by corresponding logic gates. The storage circuitry 1012 may be implemented by registers or the like. In the illustrated example, the storage circuitry 1012 is distributed amongst the logic gate circuitry 1008 to facilitate access and increase execution speed.
The example FPGA circuitry 1000 of
Although
It should be understood that some or all of the circuitry of
In some examples, some or all of the circuitry of
In some examples, the programmable circuitry 812 of
A block diagram illustrating an example software distribution platform 1105 to distribute software such as the example machine readable instructions 832 of
As used herein “substantially real time” refers to occurrence in a near instantaneous manner recognizing there may be real world delays for computing time, transmission, etc. Thus, unless otherwise specified, “substantially real time” refers to real time+1 second.
As used herein, the phrase “in communication,” including variations thereof, encompasses direct communication and/or indirect communication through one or more intermediary components, and does not require direct physical (e.g., wired) communication and/or constant communication, but rather additionally includes selective communication at periodic intervals, scheduled intervals, aperiodic intervals, and/or one-time events.
As used herein, “programmable circuitry” is defined to include (i) one or more special purpose electrical circuits (e.g., an application specific circuit (ASIC)) structured to perform specific operation(s) and including one or more semiconductor-based logic devices (e.g., electrical hardware implemented by one or more transistors), and/or (ii) one or more general purpose semiconductor-based electrical circuits programmable with instructions to perform specific functions(s) and/or operation(s) and including one or more semiconductor-based logic devices (e.g., electrical hardware implemented by one or more transistors). Examples of programmable circuitry include programmable microprocessors such as Central Processor Units (CPUs) that may execute first instructions to perform one or more operations and/or functions, Field Programmable Gate Arrays (FPGAs) that may be programmed with second instructions to cause configuration and/or structuring of the FPGAs to instantiate one or more operations and/or functions corresponding to the first instructions, Graphics Processor Units (GPUs) that may execute first instructions to perform one or more operations and/or functions, Digital Signal Processors (DSPs) that may execute first instructions to perform one or more operations and/or functions, XPUs, Network Processing Units (NPUs) one or more microcontrollers that may execute first instructions to perform one or more operations and/or functions and/or integrated circuits such as Application Specific Integrated Circuits (ASICs). For example, an XPU may be implemented by a heterogeneous computing system including multiple types of programmable circuitry (e.g., one or more FPGAs, one or more CPUs, one or more GPUs, one or more NPUs, one or more DSPs, etc., and/or any combination(s) thereof), and orchestration technology (e.g., application programming interface(s) (API(s)) that may assign computing task(s) to whichever one(s) of the multiple types of programmable circuitry is/are suited and available to perform the computing task(s).
As used herein integrated circuit/circuitry is defined as one or more semiconductor packages containing one or more circuit elements such as transistors, capacitors, inductors, resistors, current paths, diodes, etc. For example, an integrated circuit may be implemented as one or more of an ASIC, an FPGA, a chip, a microchip, programmable circuitry, a semiconductor substrate coupling multiple circuit elements, a system on chip (SoC), etc.
From the foregoing, it will be appreciated that example systems, apparatus, articles of manufacture, and methods have been disclosed that improve access tokens by generating alias scopes that (1) reduce a character size of the scopes in the access tokens and (2) hides the scopes in the access token from malicious actors. Disclosed systems, apparatus, articles of manufacture, and methods improve the efficiency of using a computing device by reducing the bandwidth required to transmit access tokens having two or more scopes. Disclosed systems, apparatus, articles of manufacture, and methods are accordingly directed to one or more improvement(s) in the operation of a machine such as a computer or other electronic and/or mechanical device.
The following claims are hereby incorporated into this Detailed Description by this reference. Although certain example systems, apparatus, articles of manufacture, and methods have been disclosed herein, the scope of coverage of this patent is not limited thereto. On the contrary, this patent covers all systems, apparatus, articles of manufacture, and methods fairly falling within the scope of the claims of this patent.