How do I automatically authenticate a Yammer user from a Java program on a network with SSO support?

I am trying to write an external Java application that collects messages from Yammer using my REST API, and I am having problems with the authentication part.

To extract the data, I want the regular yammer user (I did not have administrator privileges) to authenticate automatically from the Java application without any prompts. Does anyone know if this is possible, and what - is it possible on a single sign-on network? If so, which authentication libraries should I use? Is there a snippet of a document / sample code that describes how to log in to Yammer through Java, and not through a Yammer application?

I saw that there are similar questions, but they remain unanswered.

I will be grateful for any know-how on the topic!

Thank!

+4
source share
2 answers

The only way to authenticate yammer without any hint is to pass the constant oauth token as the carrier token in the request header. The caveat is that users cannot be dynamic.

+2
source

. Secret.Steps https://developer.yammer.com/v1.0/docs/test-token. , https://developer.yammer.com Rest API (Try It Out) ) . , . . , , Yammer ( , SSO), .

0

All Articles