office365认证 [英] office365 Authentication

查看:223
本文介绍了office365认证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有需要的用户MVC4门户网站通过Office 365的非SharePoint进行身份验证。针对不同的组织中的用户将通过这个门户网站进行身份验证。正如 https://login.microsoftonline.com/ ,无论您的域/组织的是,当你进入您的电子邮件地址和密码,office365验证,并带你到你的帐户或组织。我想要实现我的门户网站相同的行为。任何机构可以告诉我做这件事的最佳方式?

I have a MVC4 portal that needs the users to be authenticated by office 365 not SharePoint. users for different organizations will be authenticated by this portal. Just as https://login.microsoftonline.com/, regardless of your domain/organization is, when you enter your email address and password, office365 authenticate you and take you to your account or organization. I want to implement the same behavior in my portal. Can any body tell me the best way to do this?

我已经尝试了ACS(Azure的身份验证)太多,但得到的错误:帐户Mytestaccount@Test2013.onmicrosoft.com未配置为登录到该应用程序

I have tried the ACS (Azure Authentication) too but getting the error: Account 'Mytestaccount@Test2013.onmicrosoft.com' is not configured to sign-in to this application.

我已经使用了WS-元联合会的网址为:
https://login.windows.net/common/FederationMetadata/2007-06/FederationMetadata.xml\"

I have used the ws-metadata federation URL as: "https://login.windows.net/common/FederationMetadata/2007-06/FederationMetadata.xml"

但无法得到渴望的结果。

But unable to get the desire result.

推荐答案

本想发表评论,但不能...
对于认证,您可以使用javax.mail的Password验证,如

Wanted to comment but can't... For authentication you can use javax.mail 's PasswordAuthentication such as

 new Authenticator() {
                protected javax.mail.PasswordAuthentication getPasswordAuthentication() {
                    return new javax.mail.PasswordAuthentication(
                            cfg.getString("myEmail.user"),cfg.getString("myEmail.password") );
                }
            }

和用于配置office365为javax.mail可能的将帮助...

and for configuring office365 in for javax.mail may be this will help...

这篇关于office365认证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆