#* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *#

Help

Basic authentication

is the default and can be supported effectively without even setting sso.type Just by providing credentials for the domain. The credentials will not be sent preemptively, but if a 401 request is returned for Basic authentication, it will be handled properly. Tis is equivalent to setting sso.type=basic (or sso.type=html (old - now deprecated in favor of calling it basic). if you set sso.type=basic.preemptive, it will send the credentials preemptively.


URL authentication

(query args) is supported as sso.type=url or sso.type=url.base64. By definition, this type of authentication is preemptive, so no distinction is made there.


Form-authentication

is supported with sso.type=form (which is equivalent to sso.type=form.post - you can also specify sso.type=form.get, if GET protocol is used on the login form). This form also requires a bunch of other data ( e.g. the action URL, other args, names of the fields for credentials, etc.). All of this is in an example that is in the demo portlet.xml. Form-based authentication is also considred "preemptive", in that it authenticates before any other content is read. However, it only does it once. If it succeeds, all should be well. If it fails, the user will have to login by hand (since the initial content URL will cause a redirect to the login page).