# OneLogin_Saml2_AuthnRequest

SAML 2 Authentication Request

### Methods

## Constructs the AuthnRequest object.

    __construct(\OneLogin_Saml2_Settings $settings, $forceAuthn = false, $isPassive = false)

### Arguments

#### $settings

`\OneLogin_Saml2_Settings`

Settings

#### $forceAuthn

`bool`

When true the AuthNReuqest will set the ForceAuthn='true'.

#### $isPassive

`bool`

When true the AuthNReuqest will set the Ispassive='true'.

## Returns deflated, base64 encoded, unsigned AuthnRequest.

    getRequest()

## Returns the AuthNRequest ID.

    getId()

### Properties

## Object that represents the setting info

    _settings : \OneLogin_Saml2_Settings

var |

### Type(s)

`\OneLogin_Saml2_Settings`

## SAML AuthNRequest ID.

    _id : string

var |

### Type(s)

`\OneLogin_Saml2_Settings`

## SAML AuthNRequest string

    _authnRequest : string

var |

### Type(s)

`string`