Share via


IAuthenticationExtension.LogonUser 메서드

Creates a logon session for the user associated with the given credentials.

네임스페이스:  Microsoft.ReportingServices.Interfaces
어셈블리:   Microsoft.ReportingServices.Interfaces(Microsoft.ReportingServices.Interfaces.dll)
  Microsoft.ReportingServices.SharePoint.UI.WebParts(Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)

구문

‘선언
<StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey := "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")> _
Function LogonUser ( _
    userName As String, _
    password As String, _
    authority As String _
) As Boolean
‘사용 방법
Dim instance As IAuthenticationExtension 
Dim userName As String 
Dim password As String 
Dim authority As String 
Dim returnValue As Boolean 

returnValue = instance.LogonUser(userName, _
    password, authority)
[StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
bool LogonUser(
    string userName,
    string password,
    string authority
)
[StrongNameIdentityPermissionAttribute(SecurityAction::LinkDemand, PublicKey = L"0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
bool LogonUser(
    String^ userName, 
    String^ password, 
    String^ authority
)
[<StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")>]
abstract LogonUser : 
        userName:string * 
        password:string * 
        authority:string -> bool
function LogonUser(
    userName : String, 
    password : String, 
    authority : String
) : boolean

매개 변수

  • userName
    유형: System.String
    The name associated with the credentials.
  • password
    유형: System.String
    The password associated with the credentials.
  • authority
    유형: System.String
    Optional. The specific authority to use to authenticate a user (for example, a Windows domain).

반환 값

유형: System.Boolean

주의

Your implementation of LogonUser should validate your report server users against a store of user names and passwords. For example, if you were using a Forms-based custom security extension, you might implement LogonUser to verify user names and passwords stored securely in a configuration file or a database table.

참고 항목

참조

IAuthenticationExtension 인터페이스

Microsoft.ReportingServices.Interfaces 네임스페이스