ConnectEverything / nats-by-example

Collection of runnable, reference examples using NATS (https://nats.io)
https://natsbyexample.com
152 stars 37 forks source link

Not using Jetstream and really old #231

Closed gedw99 closed 1 month ago

gedw99 commented 1 month ago

Observed behavior

https://github.com/ConnectEverything/nats-by-example/blob/main/examples/auth/callout/cli/service/main.go

Not using js ? Old code ?

I am trying build adapters for sure call-out to work with different oidc system like Apple and Google and wanted to add these but this code is not up to date ?

Expected behavior

Js

Server and client version

Sane as repo.

Host environment

No response

Steps to reproduce

No response

Jarema commented 1 month ago

Hey!

This is just an example that shows how to interact with auth callouts. How you want to handle persistance and other logic is up to you, and also depends a lot on use case. You can also check out latest video about auth callouts: https://www.youtube.com/watch?v=VvGxrT-jv64

scottf commented 1 month ago

@gedw99 Closing this. Auth Callout requires JetStream. If you can give more specifics on the issue you are having with this example please continue to comment and @ me so I'm notified. You may also want to post something in NATS Slack to see if other folks have done what you are attempting to do.