Activities of "rogercprops"

This is the redis deployment file and it is running: apiVersion: apps/v1 kind: Deployment metadata: name: redis spec: replicas: 1 selector: matchLabels: app: redis template: metadata: labels: app: redis spec: containers: - image: redis:alpine name: redis ports: - name: redis containerPort: 6379

Here's the output from the kubectl describe Name: redis-696dfdfbfc-nvd2m Namespace: abp-infrastructure Priority: 0 Node: aks-agentpool-19446568-vmss000002/10.0.0.6 Start Time: Thu, 04 May 2023 13:18:54 -0500 Labels: app=redis pod-template-hash=696dfdfbfc Annotations: <none> Status: Running IP: 10.0.0.113 IPs: IP: 10.0.0.113 Controlled By: ReplicaSet/redis-696dfdfbfc Containers: redis: Container ID: containerd://8882f84973aea2ea652dd43e5a2430971cc9d69caab5b67b7ec8855cd221276b Image: redis:alpine Image ID: docker.io/library/redis@sha256:cbcf5bfbc3eaa232b1fa99e539459f46915a41334d46b54bf894f8837a7f071e Port: 6379/TCP Host Port: 0/TCP State: Running Started: Thu, 04 May 2023 13:18:57 -0500 Ready: True Restart Count: 0 Environment: <none> Mounts: /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-jsmn9 (ro) Conditions: Type Status Initialized True Ready True ContainersReady True PodScheduled True Volumes: kube-api-access-jsmn9: Type: Projected (a volume that contains injected data from multiple sources) TokenExpirationSeconds: 3607 ConfigMapName: kube-root-ca.crt ConfigMapOptional: <nil> DownwardAPI: true QoS Class: BestEffort Node-Selectors: <none> Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s node.kubernetes.io/unreachable:NoExecute op=Exists for 300s Events: <none>

We'd like to use the abp modules/libraries rather than write our own OAUTH flow.

The template project is already integrated with Identity Server or OpenIddict. You don't need to write any code.

What I'd like to know is if those routes can be exposed as external REST API's that can be called using Axios or Ajax from the Vuejs app. yo

On the contrary if AJAX returns token this may require more code.

Hi and thanks again for your quick response. I may not be asking the question correctly so I'll try to be more specific.

We need to be able to get the authentication / authorization credentials that are used in the [Authorize] interface of the microservices.

We will have a custom web application built with Vuejs and we will also need to expose REST API's to some of our clients who are using other applications.

So, the work flow would look something like this:

  1. Web application or external application calls a login API to authenticate the user/system and get an access token and other credentials back.
  2. Web application or external application access other microservices via REST APIs or an API gateway, passing the appropriate authorization credentials in the API request headers.
  3. Our Vuejs web application would also use the user's roles and permissions to control what is accessible in the UI.

We do not want a redirect to another application UI for authentication given that we'll also have external applications accessing the API's directly.

I realize we'll have additional code to write, but can we use the Abp modules (specifically Account, Identity and OpendIDDict) for the above using only REST API's? If so, how would we go about doing that?

Thanks

It seems the login from a web app is only through a redirect to the MVC Authentication app. Is that accurate?

hi

You can use oauth2-oidc library in vue like angular-oauth2-oidc

abp supports authorization code and password grant types to get access token and id token.

https://developer.okta.com/blog/2018/04/10/oauth-authorization-code-grant-type https://developer.okta.com/blog/2018/06/29/what-is-the-oauth2-password-grant#the-oauth-20-password-grant

Thank you but that doesn't really answer my question.

We'd like to use the abp modules/libraries rather than write our own OAUTH flow.

Going through the code on GitHub it looks like the login route (for example) is used in the Nuget package that contains the MVC app. abp/modules/account/src/Volo.Abp.Account.HttpApi/Volo/Abp/Account/AccountController.cs

What I'd like to know is if those routes can be exposed as external REST API's that can be called using Axios or Ajax from the Vuejs app.

Thanks

Showing 31 to 33 of 33 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 19, 2024, 10:13