Problem statement
Is it possible to prepare an external file and load that file from Actions?
Example authentication flow:
- User logs into an app
- Search the user’s user_id in an Action. (For example, the user id is “auth0|aaabbbccc”)
- Actions refers to an external file and checks if the user_id exists.
↓There are 10,000 user ids totally in external file.
・“auth0|aaaaaaaaa”
・“auth0|xxxxxxxxx”
……
・“auth0|aaabbbccc” - The user_id was found in the file.
Solution
It is not possible to “upload” a file into Actions, and each Action should not exceed 100 kB. You can store secrets, whose values have a maximum length of 2048 characters, and you can make fetch requests to an external APIs. Although be aware that request to external APIs should be scoped appropriately and can introduce more latency and possible errors into user login flows, which may have an impact on the performance of your system. You can review more details on these limitations in the documentation linked below: