Hello, I started configure my first rest api resource with custom api and faced the next problems:
- I can't change display name for Form:
code-name: some_long_field_name
Display name: Some long display name - I can't display auth state to resource for user in my page:
Not Logged in -> only Login button
Logged in -> Complete navigation header - In resource settings only "Login test URL", but I want to have also one workflow (but not critical)
- After pressing "Check authentication status using current credentials" in the "not auth" case, it says: "Auth modal will appear (you are not authenticated)". When does this executed in my app? I cannot explicitly call this, but when I use this resource in a query, it only fails to fetch data and the modal form does not open.
- About "Auth login" component.
It opens form modal (as in worlkflow). But if I close modal with close button, Auth login component state not updates, it continues to "loading" until page refresh (All login buttons for this resource, inquery "re-auth" buttons too)
My Custom Auth workflow:
- form modal (get credentials from user)
- api request (request to auth service)
- define variable (save accesst token from response into variable "AUTH_TOKEN")
I think my workflow is correct, because using in correct way (enter (in-)correct credentials) it returns correct result, and other queries uses received token
Could you please explain to me what is happening on each item? I would like to understand why something is going wrong, is it my fault or the component's bug, etc.