For the server side:

Unfortunately, C# servers don't expose authentication API yet (only C++
does). In order to authenticate the calls on the server side, you need to
inspect contents of request headers (and look for the right metadata
elements that contains the auth token) in your handlers and then call the
code that validates the tokens (probably part of IdentityServer).
Once the server side authentication API is in place, you should be able to
register a callback that validates the auth tokens for all incoming calls,
so that you don't need to invoke the validation code in each handler
yourself.

Here's the issue to track:
https://github.com/grpc/grpc/issues/6907

On Mon, Sep 12, 2016 at 6:59 PM, Andrius Norkaitis <and...@gmail.com> wrote:

> Hello.
>
> Is there any guidance on how to add support to our own OAuth
> authentication? We plan to use https://github.com/
> IdentityServer/IdentityServer4 with Hybrid Flow and we are evaluating if
> is feasible to make the native clients (Android/iPhone) communication with
> our servers (.Net C#) by using grps but we are concerned about the
> authentication.
>
> Best regards,
> Andrius
>
> --
> You received this message because you are subscribed to the Google Groups "
> grpc.io" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to grpc-io+unsubscr...@googlegroups.com.
> To post to this group, send email to grpc-io@googlegroups.com.
> Visit this group at https://groups.google.com/group/grpc-io.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/grpc-io/CAB4ybe9qG4f4o_eVqXNJvYWYkC1ubLUVMnuS0UJM1DDF
> i6B3hA%40mail.gmail.com
> <https://groups.google.com/d/msgid/grpc-io/CAB4ybe9qG4f4o_eVqXNJvYWYkC1ubLUVMnuS0UJM1DDFi6B3hA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To post to this group, send email to grpc-io@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CACF4M0SrZKua3iMxrtM-m%2BDjTk48%3Dxauk6GoKJsNrR64sNX63w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to